String replacement using Regualr expressions

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
KP
Posts: 1
Joined: Fri Mar 26, 2004 9:30 pm

String replacement using Regualr expressions

Post by KP »

:roll:

TABLESPACE mv_tsstat_storage_clause_for_ALERT_NOTE_RECIPIENTS

need to replace any occurance of the line with

TABLESPACE mv_tsstat

The last portion after the _storage_clause_for_(can be any characters or strings)


HELP :(
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Using Regular Expression:
Find (TABLESPACE mv_tsstat)_storage_clause_for_[^X]*
Replace \1
Where X=Space
I have used POSIX regular expression syntax, which can be selected
from the Editor page of the Preferences dialog box.
Edit A more general form would be (TABLESPACE [^X]+)_storage_clause_for_[^X]*
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply