Find abbreviations in a powerpoint file with VBA code using regex pattern to identify some given pattern

Pramod Kumar Mali 0 Reputation points
2023-03-02T07:03:30.4033333+00:00

Hello everyone, I want a VBA code to identify abbreviaions using regex that follows some patterns and add them into a text box at botoom of each slide. Some of the conditions for which the regex should find a match are as follows : - 

  1. More than one consecutive capital letter
  2. One or more than one consecutive capital letter followed by - or one or more digits
  3. Group of more than one consecutive capital letter with one or more  small letters in between, example, P&R, MenB
  4. One or more than one consecutive capital letter in brackets
  5. A group of letters with - in between and non whitspace at beginning and at end
  6. One or more than one consecutive capital letter followed by a - followed by one or more digits
  7. A small letter immediately followed by one or more capital letters
  8. More than one consecutive capital letters with a / in between

Also, here are few exmples of abbreviations that I want the regex pattern to identify: COVID-19, COVID19, EU5, P&R, Q4, mRNA, pPCV, SARS-CoV-2, (CPI), PCV13, MenACWY, PCV10, G-ba, G-bA, N/A, P&MA, MenB

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,439 questions
0 comments No comments
{count} votes