Results 1 to 3 of 3

Thread: Parsing BBcode tag url in a string?

  1. #1
    Join Date
    Apr 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Parsing BBcode tag url in a string?

    I use this code to parse BBcode:
    Code:
    $thedescription=str_replace("[b]","<b>",$thedescription);
    But I can't figure out how to parse url tags due to them having to correspond as so:
    Code:
    [url=
    <a href="
    ]
    ">
    Because ] can be generic, I cannot replace ] with ">

    ...so any help?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks... I've mixed parts in with my own code.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •