Consulting

Results 1 to 20 of 21

Thread: A (fiendly) Challenge to brettdj

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    Have you tried the UDF above?

    Quote Originally Posted by xld
    Don't quote me, check it yourself, but I think that VBScript 5.5 introduced look-ahead!
    Unfortunately not

    From http://aspnet.4guysfromrolla.com/articles/022603-1.aspx

    Lookaround is a feature that is partially implemented in JScript but not in VBScript. There are two directions of lookaround - lookahead and lookbehind - and two flavors of each direction - positive assertion and negative assertion. The syntax for each is:

    (?=...) - Positive lookAHEAD
    (?!...) - Negative lookAHEAD
    (?<=...) - Positive lookBEHIND
    (?<!...) - Negative lookBEHIND

    Cheers

    Dave

  2. #2
    VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    Quote Originally Posted by brettdj View Post
    Have you tried the UDF above?

    Unfortunately not

    From http://aspnet.4guysfromrolla.com/articles/022603-1.aspx

    Lookaround is a feature that is partially implemented in JScript but not in VBScript. <snip>

    Cheers

    Dave
    I note that this is incorrect and Bob was right, lookahead - but not lookbehind - is available

Posting Permissions

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