in reply to Re: How can I remove unwated parts of a string in a pattern match?
in thread How can I remove unwated parts of a string in a pattern match?

Hi,

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 ]+);/)