lua-patterns
lua-patterns copied to clipboard
RegEx Reader v1 - Issue 03
Hey @GitSparTV, This tries to implement #3.
I decided to go with Vanilla JS as you were using it already, I tried to use Rich Text Editor like CKEditor but could not make it work as RegEx101.
So what I did was just get input from a textfield, parse it and display it in a p tag.
In the end it looks like this:
ps. I tried to follow the color scheme you have on the site.
The logic is pretty simple, just some Ifs and adding span tags with certain classes. You can keep the code as it is and improve it if you want, or I can change it for you.
I did not inserted it on the main page because I don't know how would you like to display it.
Let me know what you think. Thank you for considering this.