1·Use the stylesheet in Listing 2 to validate the regex.
使用 清单 2中的样式表验证正则表达式。
2·Note: We did not implement full regex to validate the URLs, which would be a good idea.
注意:我们并没有实现完整的正则表达式来验证url,这其实是一种好的做法。
3·Each regex is represented by a match element.
每个正则表达式都由一个匹配元素表示。
4·If the current line matches the resulting regex, then the function has found the correct completion (the text of which is already in completion) and can return it immediately.
如果当前的行匹配生成的正则表达式,那么该函数就找到正确的补全(它的文本已经在补全中)并且能够立即返回它。
5·If you are using any of the POSIX regex functions, this change will affect you unless you include the ereg functionality.
如果您正在使用POSIX正则表达式函数之一,这一更改将带来影响,除非您包含ereg功能。