my $phrase = "This is a test, \"using quotes of 'two different' types. +\""; $phrase =~ s/[\S*\W*]//g; print $phrase;
my $phrase = "This is a test, \"using quotes of 'two different' types. +\""; $phrase =~ s/[^\s*\w*]//g; print $phrase;
In my llama book it states that [^\s] is the same as \S and [^\w] is the same as \W. Now, from what I understand so far, the first block of code should have worked, but it didn't.
Why is that?
Is it fair to stick a link to my site here?
Thanks for you patience.
In reply to ^\s not equal \S? by SavannahLion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |