in reply to Help with form validation regex
Or if the fourth character (_) may also be the fourth character from the end:/^..._.*_ear$/s
Or even:/^..._(?:.*_)?ear$/s
"_" eq substr($_, 3, 1) and "_ear" eq substr $_, -3;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with form validation regex
by John M. Dlugosz (Monsignor) on May 11, 2009 at 18:20 UTC | |
by perlnewb123 (Sexton) on May 11, 2009 at 18:57 UTC | |
|
Re^2: Help with form validation regex
by johngg (Canon) on May 12, 2009 at 13:56 UTC |