Skip to main content
2 of 2
edited tags
Alan Moore
  • 75.6k
  • 13
  • 110
  • 161

Regex find string between string

I want to find a string in 3 types of inputs :

  1. Client XXX.MYDOMAIN.COM is
  2. Client YYY is
  3. Client ZZZ.mydomain.com is

What I want is :

  1. XXX
  2. YYY
  3. ZZZ

Can someone help me with this. Thank you.