linkfy_text
linkfy_text copied to clipboard
doesn't handle localhost urls or ip address urls
new regex I got asking an AI bot:
// "http://localhost:22/icon" // "http://192.168.1.254/cgi-bin/apphosting.ha"
String urlRegExp = r'(https?://)?(www.)?([a-zA-Z0-9@:%.+~#=]{2,256}.[a-z]{2,6}|localhost|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\b([-a-zA-Z0-9@:%+.~#?&//=]*)';