(?m) # ^ matches at the beginning of every line
^ # the beginning of the string
uncle # 'uncle'
.* # any character except \n (0 or more times
# (matching the most amount possible))
[\r\n]+ # any character of: '\r' (carriage return),
# '\n' (newline) (1 or more times (matching
# the most amount possible))
.* # any character except \n (0 or more times
# (matching the most amount possible))
使用这个简单的正则表达式:
这样使用:
^{pr2}$逐字解释:
相关问题 更多 >
编程相关推荐