develooper Front page | perl.beginners | Postings from January 2002

Using regexp to get a substring

Thread Next
From:
David
Date:
January 6, 2002 08:53
Subject:
Using regexp to get a substring
Message ID:
20020106154442.84625.qmail@onion.perl.org
Hello All,

I am beginner and need some helps. Thanks a lot!

The question is, if I have a string, for example
"C:\PerlScripts\TestSamples\StringTest.pl", how do I use regexp to parse
this string and get substring after the last backslash ("StringTest.pl").

Thanks in advance!
David





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About