I got another question about regex. The requirement is quite easy:
Given a string that has length of a even number.
Write a substition regex to get the first half of the string:
I'm using pcre, it supports recursion and control verbs.
I tried something like this but it's not working :(
Here's the test subject on regex101
Is it possible? How can I achieve this?