mtch.pre_match â str
Instance Public methods
Returns the portion of the original string before the current match.
Equivalent to the special variable $`
.
1 2 | m = /(.)(.)(\d+)(\d)/.match( "THX1138." ) m.pre_match #=> "T" |
Returns the portion of the original string before the current match.
Equivalent to the special variable $`
.
1 2 | m = /(.)(.)(\d+)(\d)/.match( "THX1138." ) m.pre_match #=> "T" |
Designed by : w10schools
service@w10schools.com
Please login to continue.