Sunday, August 15, 2010

Re: Help with regex

0 comments
Try this:

.*?\*1\*(\d)\*72\#\#.*

Jarrod

On Aug 16, 11:56 am, Rodrigo Drumond <rodr...@quantaautomacao.com.br>
wrote:
> Hello !
>
> I have this situation:
>
> When I request, my system myhome Bticino sends:
>
>   *#*1##*1*0*71##*1*0*22##**1*0*72##**1*0*52##*1*0*23##      --> light 72
> Off
>   *#*1##*1*0*71##*1*0*22##**1*1*72##**1*0*52##*1*0*23##      --> light 72 On
>
> I need to identify this variation, and i can do it, but the problem is it:
> Some times, the system change the string order, and i receive something like
> this:
>
>   *#*1##*1*0*71##**1*0*72##*##*1*0*22*1*0*52##*1*0*23##      --> light 72
> Off
>      *#*1##*1*0*71##**1*1*72##*##*1*0*22*1*0*52##*1*0*23##      --> light 72
> On
>
> So, what is the perfect Regex?
>
> I tried this:
> (.*?\*\1*(\d+)\*72\#\#\*#\*1\#\#)
> But obviously, does not work :)
>
> thanks
>
> --
> Rodrigo Drumond
> Phone: +55 31 3377-3150
> Mobile: +55 31 8699-2549www.quantaautomacao.com.br

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: Help with regex"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com