Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionRegExp.$##(unless you are referencing it in the regular expression itself or handing it as the second argument to the
replace()method). Since
RegExpis a global object, you can access
RegExp.$1,
RegExp.$2, and so forth, from anywhere in the script. Note that
$1and
$2are local variables in Perl.