0

I have formula with variables and constants such as numbers. From that formula I want to grep only variables, not functions https://regex101.com/r/bPLoAP/2

Something similar I found here

Regex for string not ending with given suffix

My regex expression is: ([A-zА-я]+[0-9]*(?!\())

With this regex expression I expect to see variables not ones that have beginning parenthesis "("

But what I see is that regex is throwing last symbol from word which has starting parenthesis after it

Velaro
  • 461
  • 1
  • 3
  • 20

0 Answers0