Anyone know of a good regex / pattern-matching formula to check a given string for valid URLs via the str:match (or other) function?
eg. I'm trying to get something similar to this to work:
eg. I'm trying to get something similar to this to work:
Code:
str = "blah, blah, blah ...https://forums.indigorose.com ...blah,blah, blah" print(str:match("http://www.|https://www.|http://|https://)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$"))
Comment