I am trying to parse html fragment to find if there are any whitespaces inside 'href' or 'src' attributes of tags. So far i managed to come up with this regular expression:
(src|href)(\s*=\s*)(["'])(.+(?=\s).+)\3
But it can go false positive if there is a whitespace after closing quote symbol, which makes it kinda useless. How can it be modified ?
Example: https://regex101.com/r/JXp6pZ/1