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: [r0xx0rz] Testing for duplicate or invalid input: Edit Log



MrPJ
User

Jan 15, 2005, 4:16 PM


Views: 10739
Re: [r0xx0rz] Testing for duplicate or invalid input

The syntax is slightly off in places.


Code
 [0-9|\.|\(|\)]


You don't need pipe delimeters within a character class, nor do you need to escape meta characters (other than []).

So it would be written as...


Code
[0-9.()]



(This post was edited by MrPJ on Jan 15, 2005, 4:17 PM)


Edit Log:
Post edited by MrPJ (User) on Jan 15, 2005, 4:17 PM


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

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