Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Aug 3, 2023
1 parent 3712a6f commit 43d0624
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 @@ -259,7 +259,7 @@ RE2JS.compile('(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)')
.replaceFirst('$10$20') // 'jb0nopqrstuvwxyz123'
```

#### Replacing with function result
#### Replacing with callback function

The `replaceAllFunc()` method provides a way to replace substrings in a given input string that match a compiled regular expression pattern. It offers more flexibility than a simple replacement string as it accepts a callback function to determine the replacement based on the matched substring.

Expand Down

0 comments on commit 43d0624

Please sign in to comment.