Showing posts with label Textpad tricks. Show all posts
Showing posts with label Textpad tricks. Show all posts

Friday, August 1, 2008

Textpad tricks

Textpad tricks

Find and replace 

Input : 66 Urology & Nephrology 737 Spermatogenesis
Replace : the bold text in the above input

Find Pattern : ^\([0-9]+\)\(.*[a-z \t]+\)\([0-9]+\)
Replace pattern: \1 \3

output: 66 737 Spermatogenesis


Gotcha's

Always escape group by characters ( or ) with \ [backslash] like this \( \)

^ is the beginning of the line

$ is the end of the line

\n is new line.