[Solved] regex for specific filename [closed]
[ad_1] 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 [ad_2] solved regex for specific filename [closed]