Ruby 3.2.1p31 (2023-02-08 revision 31819e82c88c6f8ecfaeb162519bfa26a14b21fd)
|
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 |