Search found 6 matches
- Sat Jan 17, 2004 5:59 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2543
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: 2543
- Wed Jan 14, 2004 3:22 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2543
- Fri Jan 09, 2004 6:09 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2543
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 ...
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: 2543
- Tue Jan 06, 2004 4:28 pm
- Forum: General
- Topic: Regular Expression for multiple lines
- Replies: 15
- Views: 2543
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 ...
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 ...