Jump to content
Ketarin forum

Tip : Using regex-capture-groups within Ketarin-capture-groups


Ambimind
 Share

Recommended Posts

Ketarin exploits regular expression capture groups to return characters isolated from a larger matched set(example and explanation).
A problem arises when one requires the use of capture groups for one of their original intended uses - "back references".

The animation below demonstrates the problem and solution : Wrap the whole expression in parenthesis and increment any back references by 1.
5nlvneu.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.