mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-09-13 13:52:12 +00:00
Update named_groups.html
This commit is contained in:
@@ -63,9 +63,6 @@
|
||||
// Pattern string
|
||||
var pattern = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/g;
|
||||
|
||||
// ^ ^ ^
|
||||
//group-no: 1 2 3
|
||||
|
||||
// Data replacement using $<group_name>
|
||||
var ans=str.replace(pattern, '$<day>-$<month>-$<year>');
|
||||
|
||||
|
Reference in New Issue
Block a user