Home > OS >  Get full person name affter a specific word until "," symbol
Get full person name affter a specific word until "," symbol

Time:06-04

community! I am trying to find a way with a regular expression to get a person's name after a specific word, like Hello.

For example: Hello Frederic Abin, - Frederic Abin Hello Anna Banana, - Anna Banana Hello Omar Urael, - Omar Urael

The regex gets the entire person's name after the word Hello and stops at the , symbol.

CodePudding user response:

seems as simple as /Hello ([^,] )/ ?

https://regex101.com/r/pkqsSf/1

  • Related