Regex Expression

Need help with a quick regex expression. I want to replace all the text before the first match of number 5 and replace it with 123

User: 0552591351
Result: 123552591351

User: 005123567
Result 12351234567

User: 557654321
Result: 12357654321

Off the top of my head…

search for: (.?)(5.?)
Replace with: 123$2

But you may want to try it out! :slight_smile:

This topic was automatically closed after 70 days. New replies are no longer allowed.