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:
Regex help

 



dchilkur
New User

Apr 5, 2008, 5:29 PM

Post #1 of 2 (2384 views)
Regex help Can't Post

 
Hi All,
I have seen the following code but cannot fully understand this
^[0-9]\{0,\}\.[0-9]\{0,\}$
^ and $ are for anchoring patterns \. we are removing the special meaning of . . I only part i dont understand is \{0,\}

can some one help???


KevinR
Veteran


Apr 6, 2008, 11:31 AM

Post #2 of 2 (2378 views)
Re: [dchilkur] Regex help [In reply to] Can't Post

That is just a search pattern:


Code
\{0,\}


the pattern is: {0,}

which needs to have the curly braces escaped in a regexp otherwise it will be interpreted as a quantifier.
-------------------------------------------------

 
 


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

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