in reply to Re: Generate a regex from text
in thread Generate a regex from text
$re = join "|", map quotemeta, @column
Shameless plug - I recently wrote the node Building Regex Alternations Dynamically on exactly this topic (keep in mind it is still a draft). Also, if the number of rows in the DB is large, this may result in a giant regex.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Generate a regex from text
by LanX (Saint) on Feb 01, 2017 at 16:18 UTC | |
|
Re^3: Generate a regex from text
by porg (Novice) on Feb 01, 2017 at 16:25 UTC | |
by haukex (Archbishop) on Feb 01, 2017 at 16:33 UTC | |
|
Re^3: Generate a regex from text
by LanX (Saint) on Feb 01, 2017 at 15:55 UTC | |
by haukex (Archbishop) on Feb 01, 2017 at 16:18 UTC | |
by LanX (Saint) on Feb 01, 2017 at 16:32 UTC | |
by Anonymous Monk on Feb 01, 2017 at 20:35 UTC |