Re: [PHP-WIN] preg interpretation question

2010-01-11 Thread Pierre Joye
On Mon, Jan 11, 2010 at 2:37 AM, Mark Murphy wrote: > Can someone interpret this preg string for me? > > /[^a-z0-9\\/_.:-]/i > > Here is what I can decipher.  the match is case insensitive, and it excludes > all letters, and numbers, and the characters _ . : and - (that is > underscore, period

Re: [PHP-WIN] preg interpretation question

2010-01-11 Thread Ferenc Kovacs
if its a parameter for some shell code, then you need to douple escape the escapest. If I remember correctly, if you need an escape char in a string, you can put it in with \\, but if you need to put an escape char to a string which will be executed via exec/system/etc. then you have to put an esca

[PHP-WIN] preg interpretation question

2010-01-10 Thread Mark Murphy
Can someone interpret this preg string for me? /[^a-z0-9\\/_.:-]/i Here is what I can decipher. the match is case insensitive, and it excludes all letters, and numbers, and the characters _ . : and - (that is underscore, period, colon, and dash). The part I don't understand is \\/.