This is the one I use
(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])
Works for me, should work for you too.
More Related Contents:
- RegEx for Multi-Words Without Numbers and Any Special Characters
- What is the best regular expression to check if a string is a valid URL?
- How to get domain name from URL
- Replace single backslash in R
- Regex how to match an optional character
- What is the best regular expression to check if a string is a valid URL?
- Remove all special characters from a string in R?
- Create new column in dataframe based on partial string matching other column
- Regex to check if valid URL that ends in .jpg, .png, or .gif
- Regular expression to match last number in a string
- R/regex with stringi/ICU: why is a ‘+’ considered a non-[:punct:] character?
- Regex for comments in strings, strings in comments, etc
- Regular expression – starting and ending with a character string
- Regex number between 1 and 100
- Select rows from data.frame ending with a specific character string in R
- Regular Expression Match to test for a valid year
- Can a URL contain a semicolon and still be valid?
- Find numbers after specific text in a string with RegEx
- Extracting top-level and second-level domain from a URL using regex
- What is a regex to match ONLY an empty string?
- R split on delimiter (split) keep the delimiter (split)
- PHP – Add link to a URL in a string
- Regular Expression Vs. String Parsing
- Regex empty string or email
- Google Sheets Formula for Extracting Domain From Website?
- Regular expression to find two strings anywhere in input
- Remove square brackets from a string vector
- When is it best to use Regular Expressions over basic string splitting / substring’ing?
- Overlapping matches in R
- Replace string only once with php preg_replace