Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
OK, to match those possible characters (and only those) try something like
the \w takes care of letters, numbers and _. I always escape the - out of habit but is unnecessary. The /i is redundant since the \w is case insensitive. Personally I would do a nongreedy match. It will match other characters but it probably won't matter. Something like: update -- of course a simple split would do the trick.
-- flounder In reply to Re:^3: Regex confusion
by flounder99
|
|