Ruby 3.2.2p53 (2023-03-30 revision e51014f9c05aa65cbf203442d37fef7c12390015)
|
Regular expression execution context. More...
#include <rmatch.h>
Data Fields | |
struct RBasic | basic |
Basic part, including flags and class. | |
VALUE | str |
The target string that the match was made against. | |
struct rmatch * | rmatch |
The result of this match. | |
VALUE | regexp |
The expression of this match. | |
Regular expression execution context.
When a regular expression "matches" to a string, it generates capture groups etc. This struct holds that info. Visible from Ruby as an instance of MatchData
.
struct RBasic RMatch::basic |
VALUE RMatch::str |