in reply to problems with regular expressions

well.. there are various things... such as \b, to match word boundaries... \D to match non-digit characters... \s to match whitespace (spaces tabs newlines)... \b is zero width so will work at the front of a string... there is also the ability to do things such as [\A\s]0 which matches the beginning of a string or a space followed by a zero... (i think that will work the way I mean)

In this case though, \b is probably the way to go...

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re: Re: problems with regular expressions
by jjdraco (Scribe) on Oct 05, 2002 at 19:30 UTC
    thanks, it works just the way I want it to work, I had seen that \b before, but it never really came to mind that thats what it did.

    jjdraco
    learning Perl one statement at a time.