Changes

Text Pattern RegEx in Perl

23 bytes added, 02:07, 21 June 2007
The following lines were added (+) and removed (-):
s/// regex match. $1, $2, $3, etc. hold the backreferences. $+ holds thes/// regex match.  last (highest-numbered) backreference. $& (dollar ampersand) holds the: $1, $2, $3, etc. hold the backreferences.  entire regex match.: $+ holds the last (highest-numbered) backreference. $& (dollar ampersand) holds the entire regex match.@- is an array of match-start indices into the string. $-[0] holds the: @- is an array of match-start indices into the string.  start of the entire regex match, $-[1] the start of the first: $-[0] holds the start of the entire regex match,  backreference, etc. Likewise, @+ holds match-end indices (ends, not: $-[1] the start of the first backreference, etc. Likewise,  lengths).: @+ holds match-end indices (ends, not lengths). : $' (dollar followed by an apostrophe or single quote) holds the part of the string after (to the right of) the regex match. : $` (dollar backtick) holds the part of the string before (to the left of) the regex match.$' (dollar followed by an apostrophe or single quote) holds the part ofthe string after (to the right of) the regex match. $` (dollar backtick)holds the part of the string before (to the left of) the regex match.
Bureaucrat, administrator
16,192
edits