DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

Regex to match strings ending with en.srt or es.srt

/(en|es)\.srt$/gi
Enter fullscreen mode Exit fullscreen mode

Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack

codedrops.tech

Top comments (0)