我注意到我们程序程序员在我们的方案中使用的常规表达式,用于诸如
- email address validation
- IP validation
- ...
与 Automata 中使用的正则表达式稍有不同(如果我没有弄错)
By the way I want to design an NFA and eventually a DFA for IP validation. I have found a lot of regular expression such as the following one:
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
但我不能用JFLAP把它转换成NFA或DFA。
我该怎么办?