aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/re.c b/re.c
index 8427535be4..daa179d819 100644
--- a/re.c
+++ b/re.c
@@ -1530,6 +1530,15 @@ rb_reg_match_pos(re, str, pos)
return LONG2FIX(pos);
}
+/*
+ * call-seq:
+ * rxp =~ str => integer or nil
+ *
+ * Match---Matches <i>rxp</i> against <i>str</i>.
+ *
+ * /at/ =~ "input data" #=> 7
+ */
+
VALUE
rb_reg_match(re, str)
VALUE re, str;