Given string
1201-ryryryry
I want to extract 01
, only characters in position 3-4
I can regex
^(?:.{2})(.{2})
Which returns:
Full match 0-4 1201
Group 1. 2-4 01
Using Ansible regex_search()
and it appears it only reads the "Full match" of 1201.
Any idea how I can have it match only 01?