Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
|
Regular expression execution context. More...
#include <rmatch.h>
Data Fields | |
struct RBasic | basic |
Basic part, including flags and class. More... | |
VALUE | str |
The target string that the match was made against. More... | |
struct rmatch * | rmatch |
The result of this match. More... | |
VALUE | regexp |
The expression of this match. More... | |
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 |