In my php application user able to enter the tags(like here while ask question). I assume it will be regexp, and I used one – mb_split(‘\W+’, $text) – to split by non-word characters.
But I want to allow users to enter characters like ‘-,_,+,#’ etc which are valid ones to be in url and are common.
Is there exiting solutions for this, or may be best practicles?
thanks.
Use the explode() function and separate by either spaces or commas. Example: