Simple replace / to hard for me
-
Hi, can anyone please help me with this simple problem?
in a file I need to search for numbers like this:
*1234567890
the numbers are always changing, but I need to get the Asterisk (*) removed.
the replacement dosen’t need to be the same number, just the Asterisk need to be removed.
so from this: *1234567890
to this : 0000000000would be fine!
Thanks if anyone can help!
Regards, Sascha
-
Hello @Sascha-Holliger,
in replace dialog check regular expression.
Find what:\*(\d+) Replace with:\1
as * is a known char in regex we need to escape with \
(\d+) = this matches any size of numbers and get stored in \1Cheers
Claudia -
Thanks, but it should only replace numbers with 10 digits… there are a lot of numbers in that file, only if the number has a leading * and is followed by 10 digits it should be replaced.
-
In find what replace the + with {10}
\*(\d{10})
Cheers
Claudia -
worked! Thanks Claudia!