return reg ex in json responce
By
vorticalbox
in Programming
in Programming
Go to solution
Solved by vorticalbox,
RegExp.prototype.toJSON = RegExp.prototype.toString;
const myObj = {
reg: /(^|\s)[a-z]/g
}
console.log(JSON.stringify(myObj))
-
Topics
-
BoBo6107 ·
Posted in LTTStore.com Merch0 -
R_public ·
Posted in Networking11 -
apoyusiken ·
Posted in PC Gaming0 -
4
-
0
-
MattJames595 ·
Posted in Troubleshooting0 -
Jimkirk363 ·
Posted in Windows4 -
Ramrod126 ·
Posted in Cases and Mods0 -
smush ·
Posted in CPUs, Motherboards, and Memory7 -
asdasdasdasdasdasd ·
Posted in Hot Deals1
-

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now