Wildcard Search and Replace
-
Hello.
I am trying to find any field that is 16 digits long that starts with 123456 and replace it with 123456XXXXXXXXXX.
Here is a snapshot of what I am trying to accomplish.

I tried 123456.*, but it replaced everything to the right of that field. I just need that specific field updated.
Any assistance you could provide would be appreciated. Thanks.
-
Very close. The
*quantifier means “0 or more”. What you want is a quantifier that gives an exact number of digits… in this case,123456.{10}, which says “123456followed by exactly 10 other characters”.You might change it to
123456\d{10}, which says “123456followed by exactly 10 numerical digits”.-—
Regex Docs:- official NPP Searching / Regex docs
- the forum’s Regular Expression FAQ.
-
Holy Snikies!
Thank you so much. I have been searching high and low for that solution. Appreciate it!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login