T
Tassos
I have a file with 2 fields (";" is the seperator): 1 string (field1) & 1 regex (field2)
test1;([\w\-\.:/]+)
test2;(\w\d [\d\/]+)
test3;([\w\d\.])
I want while reading the file to have an array being filled with field1 kai another array
being filled with field2 (easy until here). But field2 should be escaped (all possible
metacharacters) because it will be used as a regex.
e.x.
my $temp =~ s/$field1/$field2/;
test1;([\w\-\.:/]+)
test2;(\w\d [\d\/]+)
test3;([\w\d\.])
I want while reading the file to have an array being filled with field1 kai another array
being filled with field2 (easy until here). But field2 should be escaped (all possible
metacharacters) because it will be used as a regex.
e.x.
my $temp =~ s/$field1/$field2/;