Page 1 of 1

get last 4 digits

Posted: Mon Feb 06, 2012 5:14 pm
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

Posted: Mon Feb 06, 2012 5:25 pm
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