【发布时间】:2013-12-17 01:48:03
【问题描述】:
我正在学习正则表达式以在 lex 程序中使用它们。我在正则表达式中看到here:
'*' matches 0 or more occurances of pattern '?' matches 0 or 1 occurance of the pattern
对此我有点困惑。我的意思是:
FL [0-9]*"."[0-9]+ FL [0-9]?"."[0-9]+ 用于 0.999 或 .999 等数字(即,小数点 . 前只有一位数字)? 谁能解释一下?提前谢谢你:)。
【问题讨论】:
标签: regex lex flex-lexer