in reply to Re^2: how can i split a string to an array and convert it into regular expression
in thread how can i split a string to an array and convert it into regular expression

What do you want the array to contain? ('gat', 'i2345')? Then _ is the delimiter. If you want to add the entire string to the array, simply use push @array, $string;.