hi i am new to perl, i have a doubt
Read perlintro#Simple substitution
Combine with anchors/foo/bar/; # replaces foo with bar in $_ $a =~ s/foo/bar/; # replaces foo with bar in $a $a =~ s/foo/bar/g; # replaces ALL INSTANCES of foo with bar in $a
perlintro also explains the safety net and string literals$ end of string
In reply to Re: need regular expression
by Anonymous Monk
in thread need regular expression
by techtween
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |