in reply to Re: Regex and a pseudo-XML tag
in thread Regex and a pseudo-XML tag

That works great! I didn't know that the "space greater than" excluded whitespace, so I learned something new! THANKS!

Replies are listed 'Best First'.
Re: Re: Re: Regex and a pseudo-XML tag
by CountZero (Bishop) on Nov 20, 2003 at 20:31 UTC
    "space greater than" does not exclude whitespace.

    If you use character classes (which is the thing inside [ ... ]) you exlude the characters mentioned in the character class if the first character after the [ is a ^. It sort of negates the list within the square brackets or includes all characters not in the list.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      I unlearned something and learned something new and correct! Thanks for the specifics. :)