I'm trying to capture: word {word} word.
I have the following regex: \S*\s\{.*?\}\S[^{\s]*
It actually captures this pattern, but it also captures word {word}. See: https://regex101.com/r/yI64KQ/6
How to fix it to only capture: word {word} word ?
Thank you very much in advance for all the people who help.
"[^{s]"
meant to be"[^{\s]"
(ie whitespace, not a literal"s"
) – BohemianA-z
matches more characters than only letters. I suugest you to have a look at an ASCII table. – Toto