Update 12_day_regular_expressions.md

Grammatical Typo
pull/934/head
taurus05 8 months ago committed by GitHub
parent 55d8e3dbc0
commit 2766b70a2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -168,7 +168,7 @@ console.log(result)
*replace()*: Executes a search for a match in a string, and replaces the matched substring with a replacement substring.
```js
const txt = 'Python is the most beautiful language that a human begin has ever created.\
const txt = 'Python is the most beautiful language that a human being has ever created.\
I recommend python for a first programming language'
matchReplaced = txt.replace(/Python|python/, 'JavaScript')

Loading…
Cancel
Save