Please can someone help me, I am trying to write a Regular Expression
check for a valid (Windows) filename (cant believe I couldnt find one
on the net already?!?!?!). Anyway, here is what I have but it doesnt
fully work - e.g. it allows the use of quotes, and the ampersand in
some positions and I just cant correct it??! Sorry for being a dull
newbie.
TIA.
-------------------------------------------------
RegExp = /^["']?(.)?([^\|\&\<\>\;\*\? \\\\\/:]+\.\w+)["']?$/
check for a valid (Windows) filename (cant believe I couldnt find one
on the net already?!?!?!). Anyway, here is what I have but it doesnt
fully work - e.g. it allows the use of quotes, and the ampersand in
some positions and I just cant correct it??! Sorry for being a dull
newbie.
TIA.
-------------------------------------------------
RegExp = /^["']?(.)?([^\|\&\<\>\;\*\? \\\\\/:]+\.\w+)["']?$/
Comment