Register now or log in to join your professional community.
I want to write JavaScript regular expression to remove all URLs from given text I use this expression (?:(?:https?|ftp|file)://|www\.|ftp\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)? its work fine if the url start with "given protocol e.g http ..." or www but it failed in some cases for example just.edu.jo (not start with www) how can I rewrite the expression to woke on such cases?
Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.