I want to check if another string matches with the following string:
'abc_xxxxxxxxxxxxx.txt'
e.g.
abc_20170926121600.txt
would match
but
xyz_20170926121600.txt
or abc_201709261216002323232323232323.txt
would not match
I want to check if another string matches with the following string:
'abc_xxxxxxxxxxxxx.txt'
e.g.
abc_20170926121600.txt
would match
but
xyz_20170926121600.txt
or abc_201709261216002323232323232323.txt
would not match
You want this:
abc_\d{N}\.txt
Where N is the number of digits.