Skip to content

Commit

Permalink
Add note about global matching to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
padolsey committed Oct 7, 2013
1 parent 09d2160 commit f740612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ findAndReplaceDOMText(

The `options` object includes:

* **find** (`RegExp | String`): Something to search for.
* **find** (`RegExp | String`): Something to search for. A string will perform a global search by default (looking for all matches), but a RegExp will only do so if you include the global (`/.../g`) flag.
* **replace** *optional* (`String | Function`): A String of text to replace matches with, or a Function which should return replacement Node or String. If you use a string, it can contain various tokens:
* `$n` to represent the *n*th captured group of a regular expression (i.e. `$1`, `$2`, ...)
* `$0` or `$&` to represent the entire match
Expand Down

0 comments on commit f740612

Please sign in to comment.