Announcement

Collapse
No announcement yet.

vBcode regexes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vBcode regexes

    Hi folks,

    I'm experimenting with regexes for a CMS and am having lots of problems... so... since vB's works so well, I want to see what they are so I can figure out how they work.

    Does anyone have a list of the regexes built into vB (e.g. the [url=text]text2[/url], [img]src[/img], etc)? I've tried looking at the code but it appears to be pulled from the database and thus isn't particularly helpful.

    Any help is appreciated! Thanks.

  • #2
    This was posted by another member here:

    PHP Code:
    Bleh can't turn off vB code in PHP... I'll make an attachment.. 

    Comment


    • #3
      Here ya go..

      Comment


      • #4
        Awesome! Thank you so very much!

        Comment


        • #5
          What about the [ PHP ] vbcode? Can you post the code to parse that? I'd really like to use that code for displaying tutorials on my website, but I'm afraid regex's and myself do not get along.

          Comment


          • #6
            http://www.php.net/manual/en/functio...ght-string.php

            http://www.php.net/manual/en/functio...light-file.php




            RTFM

            Comment


            • #7
              Does anyone have the regex that detects URLs that don't use the [URL] tags? i.e. the one that finds http://www.link.com/ and makes it into a link automatically?

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X