My First Playground

node v18.11.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const XRegExp = require('xregexp'); const regex = XRegExp.tag('x')` # Flag x (extended) enables free-spacing and comments # XRegExp.tag uses raw strings so backslashes don't need to be escaped ^ (?<year> \d{4} ) [-.] (?<month> \d{2} ) [-.] (?<day> \d{2} ) # no separator at end $ `; XRegExp.replace('2024-04-27', regex, 'lt;month>/lt;day>/lt;year>');
Loading…

no comments

    sign in to comment