Re: regrex delimiters

2001-06-06 Thread Jeff 'japhy' Pinyan
On Jun 6, David Gilden said: >s/l\w+/[]gsx; > >File "untitled 15"; Line 6: Substitution replacement not terminated. That regex is malformed. Please see chapter 7 ("Substitution") of "Regular Expressions in Perl"[1], and note the following excerpt: As with m//, you can use a character other

regrex delimiters

2001-06-06 Thread David Gilden
Hi, What is going on with the [] at the end of the regrex? Thnx, Dave G. I so understand s/// however... I am little confused with following: #!/usr/bin/perl -w $s = "long string of stuff"; ($r = $s) =~ s/l\w+/[]gsx; print $r; __END__ File "untitled 15"; Line 6: Substitution replace