How To Validate The Url Using Javascript Uncategorized Posted on October 12, 2022 | by Roshan K To split a string by the last dot, you have to first get the index position of the last dot using theĀ lastIndexOf()Ā method. HTML PART :- Javascript Code :- devopsschoolhtmljqueryLaravelphpprogram