Hi, I've set up a website that allows the user to add places to a database. However, I am unfamiliar with regex and so I'm not sure how to allow characters like apostrophes and dollar signs without them affecting the database INSERT.
I have a form, which is read by AJAX and processed with PHP/MySQL so there's thee languages which have their own "reserved" characters for various uses. Realistically the regex needs to sit in my Javascript before the AJAX sends the string. I'm quite new to Javascript so I'm not sure how I'd go about this.
Is there any chance someone could help with this, but also explain how this regex works?
Cheers, Dan