Frage

I need to make a rule in my lex file that will identify the start of a newline and a sequence of spaces I did this ^( )* but the compiler says it is wrong what is the right way to define it?

War es hilfreich?

Lösung

Try something like this:

^[\n\t ]+
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top