Correcting the issue regarding the capture group causing an infinite loop.