Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 lex 文件中制定一个规则,该规则将识别换行符的开始和我这样做的一系列空格,^( )*但编译器说这是错误的,定义它的正确方法是什么?
^( )*
尝试这样的事情:
^[\n\t ]+