PtokaX forum

Stuff => Offtopic => Topic started by: Hades on 03 November, 2013, 18:19:52

Title: Anyone that understands regex here???
Post by: Hades on 03 November, 2013, 18:19:52
I am stuck with trying to figure out working regex for flexhub ....

This is supposely $lock that flexhub sends:
$Lock EXTENDEDPROTOCOL_FLEXHUB_MULTIPROTOCOL_ABCD Pk=version0.2|
Note that 'MULTIPROTOCOL' can be replaced if the hub only supports NMDC or ADC.

It should match:

 '/^\$Lock EXTENDEDPROTOCOL_FLEXHUB_.-_....[\ ]Pk=.*/'  but it does not:(
Where did we go wrong???
Any help apreciated.....
Title: Re: Anyone that understands regex here???
Post by: sphinx_spb on 04 November, 2013, 18:40:14
More information, please... What exactly are you trying to match? and which regex engine? there are many of them and they have huge differences from each other.
Title: Re: Anyone that understands regex here???
Post by: Hades on 07 November, 2013, 02:37:55
php function preg_match but i did figure this one out ...

 :laughing:

Thanx anyways..