I have a requirement to capture the named groups in the shell script similar to how we have the provision in the python as below:
(?P.*)~(?P