[Solved] regex for specific filename [closed]


Your attempt is almost complete:

Try this:

/([-\d]{2,})_([a-zA-Z\d]+)([_-][a-zA-Z\d]+)*\.gif/

I added this:

([_-][a-zA-Z\d]+)*

which matches an _ or - followed by a tag zero ore more times.
And

\.gif

which matches the trailing .gif.

0

solved regex for specific filename [closed]