Hi all, here's one I can't figure out:
FIND: (^(PG|SG|SF|PF|C))([[:upper:]][.[:lower:]])
REPLACE: \1\t\2
I'm expecting it to find lines that start with:
PGJer
SGL.P
CPeK
CK.j
etc
And the replace should result in:
PG Jer
SG L.P
C PeK
C K.j
But instead I'm getting:
PG PGr
SG SGP
C CeK
C C.j ...
Search found 8 matches
- Mon Nov 02, 2015 9:42 am
- Forum: General
- Topic: Find & replace trouble
- Replies: 1
- Views: 2122
- Wed Dec 31, 2014 11:15 pm
- Forum: General
- Topic: TextPad not responding when running macro
- Replies: 3
- Views: 843
- Fri Dec 12, 2014 7:02 pm
- Forum: General
- Topic: TextPad not responding when running macro
- Replies: 3
- Views: 843
TextPad not responding when running macro
Hi everyone, I've got an issue where I grabbed and installed a macro from here (http://www.textpad.com/add-ons/macros.html). The macro appears in my Macros menu, even after restarting TextPad, but when I try to run it (even on a saved file) it locks up. I've tried restarting my computer, nothing ...
- Tue Jun 16, 2009 4:19 pm
- Forum: General
- Topic: Shuffle lines
- Replies: 2
- Views: 635
Shuffle lines
Any way to shuffle lines of text in TextPad? Not a huge file, just need the line order randomized. TIA for any suggestions.
- Thu Feb 12, 2009 7:41 pm
- Forum: General
- Topic: Replace with random data
- Replies: 3
- Views: 584
- Thu Feb 12, 2009 5:56 pm
- Forum: General
- Topic: Replace with random data
- Replies: 3
- Views: 584
Replace with random data
Hi, I'm trying to insert random data using search/replace. For example:
Search for: .
Replace with: ,[random data].
Before: some text.
After: some text,whatever.
Technically the data doesn't need to be random. It can use characters from the same line. For example:
Search for: .
Replace with ...
Search for: .
Replace with: ,[random data].
Before: some text.
After: some text,whatever.
Technically the data doesn't need to be random. It can use characters from the same line. For example:
Search for: .
Replace with ...
- Mon Jun 02, 2008 2:48 pm
- Forum: General
- Topic: Delete before & after
- Replies: 1
- Views: 563
Delete before & after
Hi, I have file with a few thousands lines of text. Each line contains a match to the following regular expression:
("................")
I want to delete all characters before & after the regular expression, leaving me with only the characters matching the regular express (one match per line). Is ...
("................")
I want to delete all characters before & after the regular expression, leaving me with only the characters matching the regular express (one match per line). Is ...
- Tue Apr 04, 2006 12:37 am
- Forum: General
- Topic: Strip HTML tag
- Replies: 4
- Views: 878
Strip HTML tag
Anyone have any leads on creating a macro to strip specific HTML tags? I've got a library of HTML code, and I need to strip out all SPAN and DIV tags. Most are formatted like this:
<span class=body>text is here</span>
<div class="body">text is here</div>
Any help would be much appreciated.
<span class=body>text is here</span>
<div class="body">text is here</div>
Any help would be much appreciated.