Regex:
\b< low="" number="" low="">\b
Example string:
<b22>Aquí se muestran algunos síntomas < low="" number="" low=""> tienen el siguiente aspecto.</b22>
I'm not sure why the word boundary between síntomas and < is not being found. Same problem exists on the other side between > and tienen
Suggestions on how I might more properly match this boundary?
When I give it the following input, the Regex matches as expected:
Aquí se muestran algunos síntomas< low="" number="" low="">tienen el siguiente aspecto.
removing the edge conditions \b \bPHRASE\b
are not an option because it cannot match parts of words
Update
This did the trick: (Thanks to Igor, Mosty, DK and NickC)
Regex(String.Format(@"(?<=[\s\.\?\!]){0}(?=[\s\.\?\!])", innerStringToMatch);
I needed to improve my boundary matching to [\s\.\?\!]
and make these edge matches positive lookahead and lookbehind.