Replacing last 6 digits from a number

A place to try and solve your RegEx problems.
Post Reply
smenaru
Posts: 2
Joined: Sat Mar 16, 2019 6:54 pm

Replacing last 6 digits from a number

Post by smenaru » Sat Mar 16, 2019 7:00 pm

I am looking to replace the last 6 digits from a number with 6 random numbers. How do I do that?
I have a bunch of text files and I want to make the software scan for all the 9 digits combinations and replace the last 6 ones randomly.
smenaru
Posts: 2
Joined: Sat Mar 16, 2019 6:54 pm

Re: Replacing last 6 digits from a number

Post by smenaru » Sat Mar 16, 2019 8:04 pm

The same number appears multiple times in the files. I want all of them to be edited the same.

For example: 624599153 appears 10 times in the file. I want to replace the last 6 digits in the same way for all 10 instances where this number appears. I hope I made myself clear.
User avatar
DigitalVolcano
Site Admin
Posts: 1137
Joined: Thu Jun 09, 2011 10:04 am

Re: Replacing last 6 digits from a number

Post by DigitalVolcano » Wed Mar 20, 2019 11:52 am

Currently there isn't a function in TextCrawler to replace with random text or numbers, sorry.
Post Reply