regexr icon indicating copy to clipboard operation
regexr copied to clipboard

Alert icon hiding the expression

Open williamthome opened this issue 2 years ago • 3 comments

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: image


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. image

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.

williamthome avatar Jun 15 '22 04:06 williamthome

Hey @williamthome can you share your regex? I would like contribute with this issue and it would be good take your regex to simulate.

Minozzzi avatar Aug 04 '22 14:08 Minozzzi

Hi, Guilherme! Sure! Try this one:

/(?<=<)((?<!<\s*script.*?>).*?(?!<\/\s*script\s*>)|(?<!<\s*style.*?>).*?(?!<\/\s*style\s*>))(?=>|{)|(?<=>).*?(?=<|{)|(?<=}).*?(?=<)|(?<=}).*?(?={|(\/)?>)/

williamthome avatar Aug 05 '22 00:08 williamthome

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>.*)

image

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.

seppestas avatar Feb 20 '23 10:02 seppestas