|
Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)
|
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. | |
| 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 |
The target string that the match was made against.
Definition at line 104 of file rmatch.h.
Referenced by rb_reg_adjust_startpos(), rb_reg_onig_match(), and rb_reg_prepare_re().