Does anybody know of a command-line (NOT interactive!) tool that will
generate a minimal "or" RE from a list of terms?
For example, given input like:
17118720
17159892
17179275
17180740
17182828
...it would generate:
(?:171(?:18720|59892|79275|8(?:0740|2828)))
I don't want to reinvent the wheel... :)
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
[email protected] pgpk -a [email protected]
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The British ministry have so long hired their gazetteers to
repeat and model into every form lies about our being in anarchy,
that the world has at length believed them, the English nation
has believed them, the ministers themselves have come to believe
them, & what is more wonderful, we have believed them ourselves.
-- Thomas Jefferson discussing Fake News, Nov. 13, 1787
-----------------------------------------------------------------------
Today: the 1941st anniversary of the destruction of Pompeii