-1

So lets say I want to capture =

However, I only want to capture = if == doesn't exist. For example:


hello == 1

Do not capture it with ={1}

but


hello = 1

Now we can capture it with ={1}

AKA I only want to capture it if the next character isn't =, or == isn't present.

Tried some statements

  • Is this a copy of https://stackoverflow.com/questions/76870951/how-to-add-conditional-element-to-regex ? Please don't use alternate accounts to ask the same question more than once. – CAustin Aug 10 '23 at 02:36

0 Answers0