in reply to Re^2: Compare 2 files and create a new one if it matches
in thread Compare 2 files and create a new one if it matches

In addition to the raw storage of a large and not-so large file, I've no idea how much memory processing the regex would take. I am also a bit doubful of the likelihood of a regex with several thousand alternatives actually working. The Brute Force & Ignorance method does have its downsides.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

  • Comment on Re^3: Compare 2 files and create a new one if it matches

Replies are listed 'Best First'.
Re^4: Compare 2 files and create a new one if it matches
by ikegami (Patriarch) on Sep 23, 2008 at 02:05 UTC

    I am also a bit doubful of the likelihood of a regex with several thousand alternatives actually working.

    I used List::Regexp, so there's at most {character set size} alternatives in each alteration.