-
Notifications
You must be signed in to change notification settings - Fork 1
Modifying Regex
In the textbox we can put any regex we want. Just put it, press Enter, and the regex will execute, showing the results. The script translate the PHP regex into a JS one... so maybe there are regex that can work in PHP that are currently not working in the addon. However, most of the regex will be executed without any problems.
As you now, we can make groups an catch them with parenthesis ().
This is also accepted and will be shown like:
As you can see in this case we have catch the url and the text inside the link
If we modify the regex to get only the url of the link and not the text, the hightlight will be orange instead of yellow.
E.g:
-
@<a [^>]*href="https://www\.google\.es/[^"]*"[^>]*>@isU
Orange Hightlight -
@<a [^>]*href="https://www\.google\.es/[^"]*"[^>]*>[^>]*</a>@isU
Yellow Hightlight
The highlight of the html tries to do it in the best way I know, this is an example:
@The libcurl library is free.*project is a play@isU
It's possible that the result breaks the html in some way making the highlight not to be perfect.