CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [vladik86] PERL Regular Expression for a validation form: Edit Log



FishMonger
Veteran / Moderator

Feb 12, 2015, 11:25 AM


Views: 32224
Re: [vladik86] PERL Regular Expression for a validation form

That regex will match the exact pattern that you stated.

Does your string contain anything else besides the pattern that you need to match?

Please post the string that you're needing to validate and the code you used to do the validation.

EDIT:
Oops, I see a typo in the regex which breaks it. Change it to this:

Code
/^[a-z]{3}\.\d{3}\.[a-z]\d{3}\.[a-z]$/i



(This post was edited by FishMonger on Feb 12, 2015, 11:34 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Feb 12, 2015, 11:34 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives