Here is my RegEx declaration.
private Regex rxPattern = new Regex("^(book-[a-z]{1}\z)");
I'm expecting it to match start of string "^" To end of string "\z"
But the "z" is causing the error.
I'm fairly new to RegEx and cannot find a solution, if anyone can educate me a little that would be smashing.
Thanks for reading.
(edit)
I swapped "\z" for "$" and it does not cause error.
But in another project I do use "\z" and it appear to work, but of course I probably just think it does.