DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to regexp replace with uppercase on specific capture group in js
a.replace(/xxx(yyy)zzz/, (match, p1) => p1.toUpperCase()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#regexp
#replace
#uppercase
#specific
#capture
#group
#js
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit