I want to match alphanumeric words separated by the operators, +, -, *, /, <, > and ending with a semicolon. There can be whitespace characters in between e.g. the following strings should return true:
first + second;
first - second;
first * second;
first / second;
first;
first + second < third;
third < second * first;
Run Code Online (Sandbox Code Playgroud)
This is what I have tried:
first + second;
first - second;
first * second;
first / second;
first;
first + …Run Code Online (Sandbox Code Playgroud)