I want to recognize the regular-expression with '/' in the first and end.
e.g.     /[a-zA-z]*/  means reg-exp  [a-zA-z]*

and I use lex to identify it, as following:
  \/(\\[^ \t\n]|[^ \t\n\\\/])*\/

This is OK in flex, but error in lex.(Because: A further restriction is that 
the trailing-context operator / (slash) cannot be grouped within parentheses.)

Please give me a help, thanks!
 
 
This message posted from opensolaris.org
_______________________________________________
tools-discuss mailing list
[email protected]

Reply via email to