Search
 
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
Name
2+3 =