2

Python group regexp has this syntax (?P<idGroup> ... ), where:

  • (?P<idGroup> is the beginning of a region.
  • ... is the content of the region.
  • ) is the end of region.

I highlight start region with matchgroup parameter of region. But I want to highlight separately idGroup in this start region.

Is it posible?

1
  • 1
    You could probably use two matchgroups with the contains keyword. See the example before :h E849.
    – muru
    Sep 13, 2015 at 9:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.