var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: how to use regular expression to escape symbols?
I want to read data from a CSV file and import the data into database table.
the data may contain pound sign, underscore and forward slash.
sample data from the CSV file: EC316UA#AGS, QV2K4-4E58Q-36GFA-QB86J, N/A
a) shall I search these symbols one at a time (escape them one at a time) or
I can search all three symbols at once and escape the them at the same time?
I am thinking use ereg_replace() to match the symbols, escape them and insert the data
Please give me some advises on how to accomplish this, I appreciate your help!
Why are you escaping them? Escaping a #, -, or / has no benefits from what I can see. Escape your output, NOT your input. Filter your input...