Avatar of jay_waugh
jay_waugh
Flag for United Kingdom of Great Britain and Northern Ireland asked on

How do I write a Regex to only flag the last four characters of a string

I have a string similar to the one below and I would like to use a RegEx command to only identify the last 4 characters.

\\safasda\asdads\asdasd\asdas -t 40 -g 30kjnas -y 1234

Can someone help please?

Many Thanks
Regular Expressions

Avatar of undefined
Last Comment
Terry Woods

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rgonzo1971

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.
SOLUTION
Terry Woods

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