DevUtils-app icon indicating copy to clipboard operation
DevUtils-app copied to clipboard

RegExp Tester should highlight capture group text separately in the preview

Open aescolastico opened this issue 3 years ago • 2 comments

It is a common to use a reg exp to match a string and then use capture groups to highlight or "capture" specific portions of that matched string. Regex101.com does this. See example below:

image

aescolastico avatar Apr 14 '21 06:04 aescolastico

Hi there, thanks for the suggestion! This is something I want to add to the regex tool as well, stay tuned :)

trungdq88 avatar Apr 15 '21 01:04 trungdq88

There is no highlight yet, but the Regex Tester tool is now (version 1.12) upgraded to support matching groups and named capture groups!

CleanShot 2021-10-08 at 22 36 02@2x

I'll keep a separate ticket to track the next upgrade: regex syntax highlight and show more details when mouse hover to groups.

Closing this for now, let me know if you have any other questions! 😊

trungdq88 avatar Oct 08 '21 14:10 trungdq88