Author Topic: Anyone that understands regex here???  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Offline Hades

  • Triple Ace
  • **
  • Posts: 192
  • Karma: +2/-1
  • dchublist.org
    • United DC Hublist
Anyone that understands regex here???
« 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.....

PtokaX forum

Anyone that understands regex here???
« on: 03 November, 2013, 18:19:52 »

Offline sphinx_spb

  • Member
  • ***
  • Posts: 47
  • Karma: +10/-3
Re: Anyone that understands regex here???
« Reply #1 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.

Offline Hades

  • Triple Ace
  • **
  • Posts: 192
  • Karma: +2/-1
  • dchublist.org
    • United DC Hublist
Re: Anyone that understands regex here???
« Reply #2 on: 07 November, 2013, 02:37:55 »
php function preg_match but i did figure this one out ...

 :laughing:

Thanx anyways..

PtokaX forum

Re: Anyone that understands regex here???
« Reply #2 on: 07 November, 2013, 02:37:55 »