What if you want to include the literal matched pattern in the replacement text?
如果您希望在替换文本中包括字面匹配的模式,该怎么办呢?
Upper_case takes in an array of matches and returns the whole matched pattern in uppercase.
函数upper_case接收匹配结果数组,并将整个匹配结果转化成大写。
The exclamation mark is used to separate sections of matched pattern. See "Pattern Match Results" below.
感叹号被用来分隔被匹配的部分。请见下述的”模式匹配结果”一节。
The exclamation mark is used to separate sections of matched pattern. See "Pattern Match Results" below.
感叹号被用来分隔被匹配的部分。请见下述的”模式匹配结果”一节。
应用推荐