Julian - its a javascript question regarding regex manipulation of a string.
Julian Hansen
@Dan,
Just trying to establish what the background is - when you see an SQL query with $ variables (PHP) in a JavaScript context it raises questions - I was just making sure I completely understand the context before attempting a solution.