Regular expression

Results 1 to 3 of 3

Thread: Regular expression

  1. #1
    Join Date
    Dec 1969

    Default Regular expression

    Let say i have:<BR><BR>&#060;body&#062;<BR>s<BR>b<BR>&#060;/body&#062;<BR><BR>I did this but it is not working. &#060;body (
    *.*)&#060;/body&#062;"<BR>I want it to return<BR>s<BR>b<BR>How do i tell the it to ignore the number of lines and treat it as one whole line?

  2. #2
    Join Date
    Dec 1969

    Default Try the Moderated Reg Exp forum

    on the left. Even if no one else answers it Scott is a big regular expression fan as far as I can tell so I&#039;m sure he&#039;d be able to help.

  3. #3
    Join Date
    Dec 1969

    Default RE: Regular expression

    Regular expressions have a M(ultiline) property that enables a search to be performed over multiple lines, and a G(lobal) property that enables multipe captures to be made.<BR><BR>If your search will be performed over more than one line of text you should set the multi-line property to True. I.e.:<BR><BR> Dim re As New RegExp<BR> re.Multiline = True<BR> <BR>Be sure to read up on it in the RegEx docs:<BR><BR><BR><BR><BR>Also, be sure to "debug, debug, debug" to ensure that your pattern is correct. You can test your patterns here:<BR><BR><BR><BR><BR>

Posting Permissions

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