Search and replace problem
-
Hello fellow Notepad++ Users,
Could you please help me with the following search-and-replace problem I am having?
I have a file with a list of ham radio users in the following format:
2220001,IK0YYY,Luca_Roma_Lazio_2220001
2220002,IK0YYY,Luca_Roma_Lazio_2220002
2220003,IW0BEC,Eugenio_Roma_Lazio_2220003
2220004,IT9LRZ,Giovanni_Roma_Lazio_2220004I need to remove the last underscore and the adjacent 7-digit number so that the end risult will be:
2220001,IK0YYY,Luca_Roma_Lazio
2220002,IK0YYY,Luca_Roma_Lazio
2220003,IW0BEC,Eugenio_Roma_Lazio
2220004,IT9LRZ,Giovanni_Roma_LazioObviously I’m not very expert with expressions so any help will be much appreciated.
Thank youMike
-
FIND =
_\d{7}
REPLACE = empty
SEARCH MODE = regular expression-—
Useful References
-
Thank you so much
Mike
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