[PHP] Help with preg_match and windows domain logins...

2005-12-12 Thread Daevid Vincent
I'm trying to do what should be a very simple regex, but can't seem to get PHP to work, yet regex-coach and even an XML .XSD work fine: Valid forms of a windows logon are: foo\bar \\foo\bar function isValidWinLogon($logon) { //$logon = 'foo\\bar'; $logon = '\\foo\bar'; print PPRElogon =

Re: [PHP] Help with preg_match and windows domain logins...

2005-12-12 Thread Robin Vickery
On 12/13/05, Daevid Vincent [EMAIL PROTECTED] wrote: I'm trying to do what should be a very simple regex, but can't seem to get PHP to work, yet regex-coach and even an XML .XSD work fine: Valid forms of a windows logon are: foo\bar \\foo\bar [...] //preg_match('/()?.+(\\).+/',