in reply to Re^3: Using variables in regex search
in thread Using variables in regex search
I want to convert this long list of REGEX matches into a list being sourced from a select statement on a database
Is that possible?
select CONCAT(DATA,'...') FROM TABLE
which comes out like this:
06054E...
063679...
06369N...
06374V...
06417Y...
06418E...
but I want to substitute this list into this regular expression.
if ($lines=~ /(06054E...|063679...|06369N...|06374V...|06417Y...|06418E...|)/) print "$1\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using variables in regex search
by haukex (Archbishop) on Jul 17, 2023 at 17:43 UTC |