troubleshooting Question

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

Avatar of jay_waugh
jay_waughFlag for United Kingdom of Great Britain and Northern Ireland asked on
Regular Expressions
2 Comments2 Solutions204 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros