خرید بک لینک

Vote count: 0

I am trying to separate a module name from it's path. The string I am receiving the regex on may or may not have ".js" on the end, but in the 2nd matching group I need to not have the ".js" if it is there. This is the regular expression so far:

([./]?.+/)?(.+[.js]?)

Test/example: https://regex101.com/r/nL9lK3/1

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 29 ارديبهشت 1395 ساعت: 9:13

صفحه بندی