Hello I am wondering whether it is possible to do this type of regex:
I have certain characters representing okjects i.e. #,@,$ and operations that may be used on them like +,-,%….. every object has a different set of operations and I want my regex to find valid pairs.
So for examle I want pairs #+, #-, $+ to be matched, but yair $- not to be matched as it is invalid.
So is there any way to do this with regexes only, without doing some gymnastics inside language using regex engine?
every okject with it’s own rules in []
you need to properly escape special characters