Regex to find and replace only first number -


I have a text file and I want to replace the first number with each other in line.

For example:

  aha 12 as 12 a 3 asdasd kk3l poweqwop 23 sdld 32 kas  

I want to convert Aha X to 12 A3 ADSKKX PovPopop 23 SDD 32 case

Find: ([^ \ d] +) (\ d +) ([^ \ d] +. + \ R? \ N)

Replace with: $ 1x $ 3


Comments