You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
almost same as `match` method but it returns offsets of matched substrings.
87
89
@@ -92,14 +94,13 @@ almost same as `match` method but it returns offsets of matched substrings.
92
94
93
95
**Returns**
94
96
95
-
-`heads:table`: array of head offset of matched substrings.
96
-
-`tails:table`: array of tail offset of matched substrings.
97
+
-`arr:table`: array of offsets of matched substrings. 1st index is the start offset of matched substring, and 2nd index is the end offset of matched substring, and 3rd index is the start offset of 1st capture string, and 4th index is the end offset of 1st capture string, and so on.
almost same as `match` method but it returns all offsets of matched substrings except capture strings.
103
+
almost same as `match` method but it returns all offsets of matched substrings **except capture strings**.
103
104
104
105
**Params**
105
106
@@ -108,12 +109,11 @@ almost same as `match` method but it returns all offsets of matched substrings e
108
109
109
110
**Returns**
110
111
111
-
-`heads:table`: array of head offset of matched substrings.
112
-
-`tails:table`: array of tail offset of matched substrings.
112
+
-`arr:table`: array of offsets of matched substrings. 1st index is the start offset of matched substring, and 2nd index is the end offset of matched substring, and so on.
113
113
-`err:string`: error message.
114
114
115
115
116
-
###ok, err = re:test( sbj [, offset] )
116
+
## ok, err = regex:test( sbj [, offset] )
117
117
118
118
returns true if there is a matched.
119
119
@@ -132,89 +132,67 @@ returns true if there is a matched.
0 commit comments