I’m trying to match on a line ending with something like:
blocking=12345us
The pattern I tried to match with is:
char *pattern = "blocking=(\\d{1,})us";
I have tried it with only one blackslash just in case but still no luck.
If I change that line to:
char *pattern = "(.*)";
it matches fine…
I also don’t get an error when I compile either pattern with regcomp().
So I’m assuming my regex is wrong, but it works fine in Python and I’m not sure what else to try. I compiling the regex with:
regcomp(®ex,pattern,REG_EXTENDED)
Thanks for any help!
Looking at the documentation for REs supported by regcomp it would appear that
\dis not supported – try: