in reply to Re^2: Need RegExp help - doing an AND match
in thread Need RegExp help - doing an AND match
See perlre.
/./ will match the character '.', but will also match many other characters. What you likely want is to quote the dot, so it loses its special meaning:
"." =~ m!\.!
Update: GrandFather spotted a missing ! at the end of the regular expression
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need RegExp help - doing an AND match
by Anonymous Monk on Jul 01, 2007 at 20:30 UTC | |
by parv (Parson) on Jul 01, 2007 at 21:12 UTC | |
|
Re^4: Need RegExp help - doing an AND match
by Anonymous Monk on Jul 01, 2007 at 21:06 UTC |