It is not a complete project but you are welcome to use it. Actually, I was developing a general JavaScript code executor so that you just enter your expression in the input field and the Web Viewer
will execute the code and gives back the result.
https://x.thunkable.com/projectPage/621c9b6c73ba2500119d10ef
So if you try to enter something like
-
new Date().toString()
you will get todays date -
"Welcome to Thunkable".length
you will get number of characters in this sentence. -
new Date(1645644034000).toString()
will get 23rd Feb
That is the actual project, I’m just extending it to do the RegExp so you can enter something like
-
"Welcome to 100% coding".match(/\d{1,}/)
you will get the digits only (100) -
"Welcome to 100% coding".match(/co/g)
you will get 2 of co
I have hardcoded in it that if you leave the input blank then it will use the text variable to search for a pattern example and give the result in a List Viewer
.