in reply to Re: Re: Regexes are slow (or, why I advocate String::Index)
in thread Regexes are slow (or, why I advocate String::Index)
There are these two complementary pattern matching operators in SNOBOL:
SPAN() BREAK()
SPAN matches a string containing any characters in its argument list, BREAK matches a string containing any characters not in its argument list. I think the implied mnemonic is to SPAN a substring containing a character set or BREAK (stop matching) on a substring containing anything not in the character set.
|
---|