I have an input field, and would like to remove ".com" ".net" ".org" from any strings entered. (basically anything including and following a period)
What's the best way to go about this?
Thanks in advance!
Printable View
I have an input field, and would like to remove ".com" ".net" ".org" from any strings entered. (basically anything including and following a period)
What's the best way to go about this?
Thanks in advance!
I would split(".") then join without the last array element, which is the extension part.
Of course! Will give it a shot - thanks again.