If you change the pattern match to
it should work fine.if ( $x =~ /\Q$y\E\s+/ig ) { # . . . }
After Compline,
Zaxo
In reply to Re: How Do I Skip Spaces At The End of Words Using A Regex?
by Zaxo
in thread How Do I Skip Spaces At The End of Words Using A Regex?
by phemal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |