although your regex most probably works fine, the initial part (.*) is useless if you can describe better what you want to match, and the semi-colons don't need to be escaped. You could consider something like this:
if ($big_string =~ /;([\w ]+$small_string[\w ]+);/)
In reply to Re^2: How can I remove unwated parts of a string in a pattern match?
by Laurent_R
in thread How can I remove unwated parts of a string in a pattern match?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |