I'm pretty new to regexp and I don't get why this expression is not matching the string
Regular expression:
^$0$.*|$5$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}$
String:
$5$VcklQoY36plyldTg$cDc5UqmzE.NDnd/HbGXYzntHG9h4xycG2SSUSPH.Ww6
I see that $5$ in the target string, (rounds=\d+$) is optional. It matches the next 1-16 characters with the character set [a-zA-Z0-9./] and the next 43 characters with the character set [a-zA-Z0-9./]. How does the string not match the expression here?
I'm using the regcomp() and the regexec() functions from the linux regex library.