flutter_linkify
flutter_linkify copied to clipboard
Is there a way to detect links with commas?
I have the link with comma and I can't figure out what should be the RegEx for this type of links. Does anyone know ? link example: https://morecup.cups.nu/2024,nb/result/team/49286854 regEx for modifying: r'^(.?)((?:https?://|www.)[^\s/$.?#].[^\s])'
For anyone who will struggle from the same problem, here is a RegEx for such types of links
RegExp(
r'^(.*?)((?:https?:\/\/|www\.)[^\s/$.?#].\S+,+\S*)',
caseSensitive: false,
dotAll: true,
)