...最后面匹配$substring的最短的子串${string%%substring} 删除最后面匹配$substring的最长的子串替换子串(Substring Replacement)${string/substring/replacement} 把第一个匹配的$substring替换为$replacement${string//substring/replacement} 把所有匹配的$...
基于30个网页-相关网页
You'll recognize several parameter expansions, including length, substring, pattern matching, and pattern replacement in even this short piece of script.
即使在这样一小段脚本中,您也可以找到一些参数扩展,包括长度、子字符串、模式匹配和模式替换。
Within a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.
在指定的输入子字串内,使用指定的取代字串来取代符合规则运算式模式的指定最大字串数目。
应用推荐