I want to extract the base name from a image URL in Javascript. Would somebody care to give me a a hand on the Regex?
The rule would be:
return ever
Try this regular expression:
/([^/]+(?=\.[^/.]*$)|[^/.]+$)/