Delete numbers following letters ( i.e. \w\d+\s becomes \w\s)
-
Hello everyone.
I’m having a hard time trying to delete the numbers that follow letters in a text I’m working on. Let me explain:
I basically converted a PDF to TXT, but in so doing, some words got some numbers attached to them (ex: “mindful2” or “ready27”) because those were references to notes to the text in the original PDF.
Is there a way to delete only the numbers that immediately follow letters (something like \w\d+\s )?
Thanks in advance!
-
…only the numbers that immediately follow letters
To provide what you’ve asked for:
Find:
(?i)(?<=[a-z])\d+
Search mode: Regular expression(Hmm, after the fact I notice that you are a repeat regexer – but you did provide a “what I tried”, so…)
-
@Alan-Kilborn you’re right! Haha. Sorry about that, I’m just finding how regular expressions work (and I’m loving it, even though it’s hard to learn all by oneself)… so I’m sorry if sometimes my questions are more or less repetitive -.-’
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