Basic Editing SNAFU

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
CJEMS
Posts: 7
Joined: Sat Apr 14, 2007 6:33 pm

Basic Editing SNAFU

Post by CJEMS »

^[0-9]+[ \t]*

I have used Textpad for separating numbers from words in lists of data in the past. Recently I reinstalled Textpad. Tried running a search string that has always worked beautifully in the past (since spring '07) but now I keep getting an error message, "Cannot find literal string: '^[0-9]+[ \t]*'"

I did go into Configure - Preferences - Editor, then checked box for "Use POSIX regular expression syntax" and then "apply".

Frustrating. What am I doing wrong?

This is what I follow:

Ctrl-Home to set cursor in top left corner
GoTo “Search�
GoTo “Replace�
In “Find What� make spacebar keystroke, to find “spaces� in each line of data
Then click “Replace All� – this deletes ALL spaces except between number string and text
Then Ctrl-Home (if isn’t already in top, left corner)
GoTo “Search�
GoTo “Replace�
In “Find What� type this formula: ^[0-9]+[ \t]*

Normally works perfectly.
kitimat
Posts: 45
Joined: Tue Jul 20, 2004 5:44 pm

Post by kitimat »

sounds like you forgot to enable regular expression in the conditions menu in the bottom left of the replace dialog screen.

hope this helps
kitimat
Post Reply