Re: Understanding whitespace
[email protected] ((Randal L. Schwartz)) 15 Nov 2003 11:35:27 -0800
| Newsgroups | perl.recdescent |
|---|---|
| Organization | Stonehenge Consulting Services; Portland, Oregon, USA |
| Message-ID | <[email protected]> |
>>>>> "Colin" == Colin Kuskie <[email protected]> writes: >> DOMAIN_COMP : /is\s+[not]*/ix Colin> If your character class, [not], is really supposed to be Colin> parentheses, then this should work: Colin> DOMAIN_COMP : /(?:is not)|(?:is)\s*/ix Yeah, I looked at that and said "is", followed by mandatory whitespace, followed by 0 or more of n, o, and t. Ugh. That'd match "is tonnon" :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!