method
post_match
Ruby latest stable (v2_5_5)
-
0 notes -
Class: StringScanner
post_match()
public
Returns the post-match (in the regular expression sense) of the last scan.
s = StringScanner.new('test string') s.scan(/\w+/) # -> "test" s.scan(/\s+/) # -> " " s.pre_match # -> "test" s.post_match # -> "string"