I had an issue with this regex:
(\{(([^\p{Space}][^\p{Punct}])+)\})
The problem is in number of chars. If I typing even number of chars it's works, when odd - not. I was trying to replace '+' with '?' or '*', but result still the same. How can I fix this?
I expect from this regex to block such strings: {%,$ #fd}. And allow this: {F} or {F242fFSf23}.
{, then 1 or more repetitions of 2 chars, a non-space and then a non-punctuation, and then a}, hence you cannot use 1 char in between{...}\{[^\p{Punct}\p{Space}]+\}or\{[^\p{P}\p{S}\s]+\}or even\{\p{Alnum}+\}or\{[A-Za-z0-9]+\}