This Regex is a bit niche and I'm really struggling to get it down. Here is an example of what I hope it would do:
Testing space was before this part word space after this part this part shouldn't count. I want to try and extract all of the text between either of the two groups of spaces, this is what I've tried so far:
{2}.*?word.*? {2} (Not there is a space before both of the {2}'s)
It should only extract "space was before this part word space after this part". Any help would be appreciated, thanks!
Testingis not part of the match." {2}(?:(?! {2}).)*?word.*? {2}", see regex101.com/r/oOryYx/2