这些匹配变量 ( match variables) 是组成正则表达式强大功能的重要部分 , 它允许取出相应的字符串 : $_ = “Hello there, neighbor”;
基于4个网页-相关网页
Is it possible to specify the lifetime on match variables in rust?
可以指定在锈匹配变量的生命周期?
The match variables are NOT set when weighted scoring is used, since the same pattern is matched multiple times.
当权重打分的时候,MATCH变量将不被设置,因为相同的模式被匹配了多次。
These are hypothetical variables that will only have a value if the match succeeds.
这些是假定的变量,只有匹配成功时它们才会有一个值。
应用推荐