sekhar kavuru wrote:
Hi All
I need a REGEX to get a string between two characters from a static
string
e.g. /install/sql/foo.c@@/main/integration/1
I need to get foo.c , i.e string between / and @@
my $string = '/install/sql/foo.c@@/main/integration/1';
$string =~ s#^.+?(.*?/([^/]+?))[EMAIL PROTECTED]@.*$#$2#;
print $string;
foo.c
my $string = '/install/sql/foo.c@@/main@@/integration/1';
$string =~ s#^.+?(.*?/([^/]+?))[EMAIL PROTECTED]@.*$#$2#;
print $string;
foo.c
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs