Search found 3 matches

by kongharald
Mon Oct 30, 2006 7:21 pm
Forum: General
Topic: Split address string with text and number
Replies: 3
Views: 469

Split address string with text and number

I have a file with addresses with a format like this

Code: Select all

Bigstreet 11a
East Old avenue 2b
Mean Street 4
Shopping district 1, 2b
Is there a Reg.exp that may insert a tab before the first digit in each line?
by kongharald
Tue Sep 14, 2004 1:12 pm
Forum: General
Topic: Replace expression with itself + string
Replies: 2
Views: 269

Replace expression with itself + string

If I try to do a RegExp replace and want to insert the search expression into the replace expression TextPad inserts "\1" or "\2" litteraly as replacement text, not the search expression from the Find form.

What am I doing wrong?
(tried both Posix and non-posix searches)
by kongharald
Sat Oct 11, 2003 7:25 pm
Forum: General
Topic: Strip tags with regular expression
Replies: 1
Views: 271

Strip tags with regular expression

I want to remove all <script>-tags and their content from a buch of HTML-files.

However, RegExps like
<script[^>]*>.*</script>
doesn't seem to work, since the "." operator excludes newline characters (\n)

How do I write a RegExp replace statement in TextPad that works with multi line strings?