We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 664273c commit 076404bCopy full SHA for 076404b
readme.md
@@ -123,7 +123,9 @@ The string or array you would like to do replacement on.
123
124
Type: `regexp|string`
125
126
-The string or RegExp you would like to replace within `string`. Note that when using a `RegExp` you **MUST** include a matching group.
+The string or RegExp you would like to replace within `string`.
127
+
128
+**NOTE:** When using a `RegExp` you **MUST** include a capturing group. (`/(hey)/g` is ok, `/hey/g` is not.)
129
130
Example: Replace all occurrences of `'hey'` with `<span>hey</span>`
131
0 commit comments