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 failing: Edit Log



Jeff29
Novice

Dec 17, 2010, 2:39 PM


Views: 1612
Regex failing

INPUT:-
//tools/scripts/script_rev1.1.txt
//tools/scripts/files_data.txt

My below regeex fails when there is a "." (dot) in the PLF,how do I change it to match both the above examples?

Code
($line =~ /\/(\w+\.txt)/)



(This post was edited by Jeff29 on Dec 17, 2010, 2:39 PM)


Edit Log:
Post edited by Jeff29 (Novice) on Dec 17, 2010, 2:39 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