in reply to Possible to have regexes act on file directly (not in memory)
"... split the file into chunks and test each chunk..."
If the OP got this data:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonu +my eirmod tempor invidunt ut labore et dolore magna aliquyam erat, se +d diam voluptua. At vero eos et accusam et justo duo dolores et ea re +bum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ips +um dolor sit amet.
...and splits it into two chunks:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonu +my eirmod tempor invidunt ut labore et dolore magna aliquyam erat, se +d diam voluptua. At vero eos et accusam et justo duo dolores et ea re +bum. Stet clita kasd guber
gren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
...how should he ever match gubergren?
Perhaps i missed something. Anyway, best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Possible to have regexes act on file directly (not in memory)
by Laurent_R (Canon) on May 02, 2014 at 17:42 UTC | |
by karlgoethebier (Abbot) on May 02, 2014 at 18:00 UTC | |
by hippo (Archbishop) on May 02, 2014 at 18:59 UTC | |
by Laurent_R (Canon) on May 02, 2014 at 22:04 UTC | |
by Laurent_R (Canon) on May 02, 2014 at 18:56 UTC | |
by LanX (Saint) on May 02, 2014 at 19:28 UTC | |
by Laurent_R (Canon) on May 02, 2014 at 21:07 UTC | |
|