summaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 01:38:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 01:38:04 +0000
commit86c19d0baf4d9169a943e9028709365d602d17bd (patch)
tree812149ffc2ca8d55635c534f9f51895c1130141d /re.c
parent99a0c77bb5c2caab783fc3e7f3edb52cd62b7c12 (diff)
downloadruby-86c19d0baf4d9169a943e9028709365d602d17bd.tar.gz
ruby-86c19d0baf4d9169a943e9028709365d602d17bd.tar.xz
ruby-86c19d0baf4d9169a943e9028709365d602d17bd.zip
rdoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 8427535be..daa179d81 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;