I need a regex pattern to catch pattern in different optional locations.
Let me explain in an example:
Test strings:
x-test
y-test
z-test
test-t
I need to capture x,y,z,t in same named group
Please check it from here:
I need a regex pattern to catch pattern in different optional locations.
Let me explain in an example:
Test strings:
x-test
y-test
z-test
test-t
I need to capture x,y,z,t in same named group
Please check it from here: