Avatar of Andreas Hermle
Andreas Hermle
Flag for Germany asked on

extract two character acronyms along with accompanying term, such as 3D-printing or 4k applications

Dear Experts:

I managed to extract 2-character acronyms (number + letter), such as 3D, 4D, 4K etc. with the following search expression (wildcards checked)

<[0-9]{1}[A-Z]{1}

The search works just fine for the above expressions.


I also would like to be able to extract these kinds of acronyms along with accompanying terms (with or without hyphen) such as ...

3D animations
4D-printing
4K applications
4K-applications

How is the above search term to be extended to accomodate my requirements.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
Microsoft Word

Avatar of undefined
Last Comment
Andreas Hermle

8/22/2022 - Mon
GrahamSkan

Hi Andreas,This works with your examples, but you might have some more difficult cases in mind.

<[0-9]{1}[A-Z]{1}>[ -]{1}<[a-z]{1,}>
Andreas Hermle

ASKER
Hi Graham,

thank you very much for your quick help. Strangely enough your expression does not work on my side.

I guess I came up with my own solution

<[0-9]{1}[A-Z]{1}-[A-Z][a-z]{1;} or <[0-9]{1}[A-Z]{1} [A-Z][a-z]{1;}
ASKER CERTIFIED SOLUTION
Andreas Hermle

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61