I'm creating an object runtime:
var myObj = {};
myObj[propertyName] = propertyValue;
propertyName is something variable, and if it's like "a.b" my object has the "a" property with the "b" subproperty. So I was thinking about a regexp to clean the data, but I need to know what others characters may be problematic for javascript.