#!/usr/bin/perl -w use strict; my $string = "TITLE=SPECIAL CASE 1"; $string =~ /.*=(.*)/; print $1;
. stands for any character but a newline
* for zero or more times
() stores the result in $1.
Type "perldoc perlfaq6" for more details ...
hth
weini
In reply to Re: How can I extract part of a string after a specific character
by weini
in thread How can I extract part of a string after a specific character
by horgof
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |