Re: regex and global vars problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-10-26 at 12:07 -0600, Jason Gerfen wrote:
> Um I did actually, but I will re-interate the problem with more detail.
> 
> the vars $mac1, $mac2, & $mac3 are to get passed to the chk_mac() 
> function which determines if it is a valid hex representation of a h/w 
> address, if it does not meet the criteria of having a ":" separating 
> every two characters it then passes the var to the fix_mac() function 
> which attempts to fix the string or h/w address by either replacing any 
> "-" with a ":" or to break the h/w address up and insert a ":" every two 
> characters.  I also believe this is the one you should be playing with 
> as the last post I added a new regex which wasn't working.

OK, you've told us what your code does. Now can you explain what the
problem is? "A new regex which wasn't working" is a bit vague.

* Does it throw an error?
  - If so, can we have the error message?

* Does it mark invalid strings as valid?
  - Or vice versa?

Just posting a pile of code with an explanation of what it does and
leaving the rest of us to figure out what the problem is, is not helping
us to help you.

-- 
Jasper Bryant-Greene
General Manager
Album Limited

e: jasper@xxxxxxxxxxx
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux