Am trying to extract all word character from a url to remove the leading "/"
"/assedede".match(/\w*/) // "" empty string
The above code do not match any character. but
"/assedede".match(/\w+/) // "assedede"
why is /\w*/ not working?
Am trying to extract all word character from a url to remove the leading "/"
"/assedede".match(/\w*/) // "" empty string
The above code do not match any character. but
"/assedede".match(/\w+/) // "assedede"
why is /\w*/ not working?