Hi,
I'm using a Perl program to extract text from a file. I have an array of strings which I use as delimiters for the text, e.g:
$pat = $arr[1] . '(.*?)' . $arr[2];
if( $src =~ /$pat/ ) {
print $1;
}
However two of the strings in the array are '$450' and '(Buy now)'. The problem is that the symbols in the strings represent end of string and group in Perl regex. which is why the text wont parse properly.
Can anyone suggest me a way around this?
Many Thanks, Joe.