regexr
regexr copied to clipboard
Alert icon hiding the expression
I'm having some issues with the alert icon
. It hides the regex at the end part and makes the continuation editing a problem.
Take a look at the right top:
Maybe the icon could have a close button or a "Got it" button in the tooltip when hovered, like the image below, and, when clicked, hides the icon.
Also, removing the CSS float
property from the alert icon and adjusting the CSS from the parent element to "move" the horizontal scrollbar to the left will do the trick.
Or an "Ignore warnings" option also can be a solution.
Hey @williamthome can you share your regex? I would like contribute with this issue and it would be good take your regex to simulate.
Hi, Guilherme! Sure! Try this one:
/(?<=<)((?<!<\s*script.*?>).*?(?!<\/\s*script\s*>)|(?<!<\s*style.*?>).*?(?!<\/\s*style\s*>))(?=>|{)|(?<=>).*?(?=<|{)|(?<=}).*?(?=<)|(?<=}).*?(?={|(\/)?>)/
Got the same issue, regex:
(?<timestamp>\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}.\d{2}) *(?<loglevel>[A-Z]+) *(?<labels>[A-Z]*) *\[(?<thread>.+?)\] *(?<function>\w+\*?) * {(?<line>\d+)} *- *(?<message>.*)
It would be nice to have the ability to ignore certain errors. In my case, naming capture groups are supported by the system I'm using, so the message that it's not supported on some browsers isn't verry useful.