OK, now on to the second regexp.
好,现在看一下第二个regexp。
Step 2: Compile the regexp pattern.
第 2步:编译regexp模式。
Notice that you have to quote the regexp now.
请注意,现在必须给 regexp加上引号。
You can often see right away if your regexp needs fixing.
如果regexp需要进行调整,通常就可以立即发现。
So, this regexp is equivalent to: Take the first text that precedes a space.
因此,该regexp相当于:取空格前的第一段文本。
regExp : Regular expression to validate the field.
regExp :用于检验字段的正则表达式。
regExp : Regular expression to validate the field.
regExp :用于检验字段的正则表达式。
应用推荐