bash-2.02$ perl $formula = $bit = '(4+5)'; if( $formula =~ /$bit/ ) { print "yeah\n"; } else { print "Oh no!\n"; } ^D Oh no!
Originally posted as a Categorized Question.
In reply to How do I escape metacharacters in a user-defined string? by Coyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |