i try to read vallid url from a document with regex, but it doesnt work as i expect i got this regex
https?:\/\/?[-a-zA-Z0-9@:%._\+~#=\[\]]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\ +.~#?&//=]*)
but if i try to read for example "https://www.example.com/folder/folder/document.pdf" it works, but if i try to read "https://www.example.com/folder/folder/document[first attempt].pdf" it doesnt match. debugger says : "\[ matches the character [ literally (case sensitive)"
FYI: i tried in on http://regexr.com/