Search found 8 matches

by insolitude
Mon Nov 02, 2015 9:42 am
Forum: General
Topic: Find & replace trouble
Replies: 1
Views: 2123

Find & replace trouble

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 ...
by insolitude
Wed Dec 31, 2014 11:15 pm
Forum: General
Topic: TextPad not responding when running macro
Replies: 3
Views: 846

Version 7.1.0, the macro is the one for clearing leading spaces.
by insolitude
Fri Dec 12, 2014 7:02 pm
Forum: General
Topic: TextPad not responding when running macro
Replies: 3
Views: 846

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 ...
by insolitude
Tue Jun 16, 2009 4:19 pm
Forum: General
Topic: Shuffle lines
Replies: 2
Views: 637

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.
by insolitude
Thu Feb 12, 2009 7:41 pm
Forum: General
Topic: Replace with random data
Replies: 3
Views: 592

Yes, that is great. Possible to replace with a letter instead of a word?

Before: Some Texts.
After: Some Texts,T.

OR

Before: Some Texts.
After: Some Texts,s.

Meanwhile I'm going to spend some time decoding your suggestion, once I understand it I can probably answer my own question...
by insolitude
Thu Feb 12, 2009 5:56 pm
Forum: General
Topic: Replace with random data
Replies: 3
Views: 592

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 ...
by insolitude
Mon Jun 02, 2008 2:48 pm
Forum: General
Topic: Delete before & after
Replies: 1
Views: 565

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 ...
by insolitude
Tue Apr 04, 2006 12:37 am
Forum: General
Topic: Strip HTML tag
Replies: 4
Views: 882

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.