Skip to content
Alex edited this page Nov 21, 2013 · 1 revision

The Textbox Area

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.

Catching Groups

As you now, we can make groups an catch them with parenthesis ().
This is also accepted and will be shown like:
Google Catch As you can see in this case we have catch the url and the text inside the link

Orange Hightlight

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

Catching A Piece Of Html

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


Wikipedia Highlight

It's possible that the result breaks the html in some way making the highlight not to be perfect.