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
104
88
-
**Params**
105
+
**Parameters**
89
106
90
107
-`sbj:string`: the subject string.
91
108
-`offset:number`: offset in the subject at which to start matching.
92
109
93
110
**Returns**
94
111
95
-
-`heads:table`: array of head offset of matched substrings.
96
-
-`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 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.
118
+
almost same as `match` method but it returns all offsets of matched substrings **except capture strings**.
103
119
104
-
**Params**
120
+
**Parameters**
105
121
106
122
-`sbj:string`: the subject string.
107
123
-`offset:number`: offset in the subject at which to start matching.
108
124
109
125
**Returns**
110
126
111
-
-`heads:table`: array of head offset of matched substrings.
112
-
-`tails:table`: array of tail offset of matched substrings.
127
+
-`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
128
-`err:string`: error message.
114
129
115
130
116
-
###ok, err = re:test( sbj [, offset] )
131
+
## ok, err = regex:test( sbj [, offset] )
117
132
118
133
returns true if there is a matched.
119
134
120
-
**Params**
135
+
**Parameters**
121
136
122
137
-`sbj:string`: the subject string.
123
138
-`offset:number`: offset in the subject at which to start matching.
@@ -132,89 +147,67 @@ returns true if there is a matched.
0 commit comments