get last 4 digits

General questions about using TextPad

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

Post Reply
srive99
Posts: 30
Joined: Fri Apr 16, 2010 1:45 pm

get last 4 digits

Post by srive99 »

Hey All,
I have a numbers like below

********1234
****3432
******5244
*********3245

from those lines I need to get the last 4 numbers

1234
3432
5244
3245

Any one have an idea how we can get those.

Thanks
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Use "Posix" regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Search | Replace... (<F8>):
Find what: .*([0-9]{4})$
Replace with: \1

[X] Regular expression

Replace All
Post Reply