【发布时间】:2016-11-14 14:48:19
【问题描述】:
我需要将以下 EBNF 转换为匹配任何有效格式字符串的正则表达式。例如'
<spec> -> :[[<fill>]<align>][<sign>][<width>][,][.<prec>]
<fill> -> <character> (* i.e., any one character)
<align> -> < | > | = | ^
<sign> -> + | - | ' '
<width> -> <integer> (* i.e, one or more digits 0....9 *)
<prec> -> <integer>
【问题讨论】:
-
向我们展示您的尝试