Search found 6 matches
- Sat Jan 17, 2004 5:59 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
The trick to deleting to replacing a sequence of characters that extends over multiple lines was given by Bob Hansen. Namely, first you have to replace all new lines with a unique code. Then you can use a regular expression like START.*END to find and replace the sequence that starts with START and ...
- Wed Jan 14, 2004 5:23 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
- Wed Jan 14, 2004 3:22 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
- Fri Jan 09, 2004 6:09 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
Hi Bob, I need to specify a start and an end, e.g. "START.*END" and delete everything in-between as well as the start and end. Unfortunately, the file is very large and the pattern occurs many times. I can always do this manually. But I am sure the problem will come up again and I am looking for a ...
- Wed Jan 07, 2004 3:02 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
OK, I eliminated the new lines. I am left with a regular expression like this: START.+END where "START" and "END" are the fixed sequence of characters and any characters can be in between. I tested this in another regular expression processor (Java) and it works - but not in TextPad. Any more ideas ...
- Tue Jan 06, 2004 4:28 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2157
Regular Expression for multiple lines
I am trying to write a regular expression that will replace or delete multiple lines that always start and end with a fixed sequence of characters. For example: START OF DATA . . . END OF DATA The problem I have is that . does not match line terminators. Also, I can't have a class [.\n]. Any ...