I would like to know how to have match operator "match" the * as a char and not as an regexp operator. Current implementation interprets the * as a regexp operator.$line = "THIS TEXT HAS A * IN IT"; $theMatch = "THIS TEXT HAS A * IN IT"; if($theMatch =~ /$line/ ) { s/$line/$tag/g; }
edited: Mon Jul 29 20:29:42 2002 by jeffa - added code tags
In reply to treating * as a normal character in a regex by chuleto1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |