Announcement

Collapse
No announcement yet.

Regular Expressions

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

  • Regular Expressions

    what does the "#" mean in a regular expression?
    Done with vB3 and Internet Brands...Moved on to xenForo. PM me if u want to buy my VB License

  • #2
    It generally is used to comment out a line of text, I belive.

    Comment


    • #3
      Not for Regex.

      # at the start of a regex string is used as an inidicator that the regex pattern starts (and another one at the end to indicate the end of the regex pattern).

      You could also see /PATTERN/, and there are a few others as well.

      Comment


      • #4
        If you specify the x pattern modifier, it does specify a comment line.

        vB does use the # character as the regex delimiter as merk stated, but you can choose just about any character as the delimiter.

        Comment


        • #5
          What if i wanted to use # as part of Apache's rewrite module/
          iv'e tried \# and no luck -- it doesnt work
          Done with vB3 and Internet Brands...Moved on to xenForo. PM me if u want to buy my VB License

          Comment

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