Hi,

I'm also using SIPp and trying to find similar regular expression, I tried
the > < but couldn't find out how to find new line.
Here's what I tried:
  <ereg regexp="&lt;tuple id=\"222\";&gt;\n;&lt;status&gt;" search_in="msg"
check_it="true" assign_to="1" />

This is the result of printing [$1]:

<tuple id="222"

1. Anyone have an idea how to solve it?

2. Does SIPp have limitations regarding the length of the regular
expression, I mean - if I would like to find the whole body of a message
that looks like this:
    <tuple id="12345">
           <status>
               <basic>open</basic>
           </status>
       </tuple>
   <tuple id="222">
           <status>
              <basic>close</basic>
           </status>
       </tuple>
       <dm:deviceID>intel:0121212</dm:deviceID>
       <rpid:class>email</rpid:class>
       <dm:person id='123'>
          <rpid:sphere>job</rpid:sphere>
       </dm:person>
    </p:pidf-full>

Can I do that using regular expression?

Hope you can help.
Thanks,
Einat




                                                                           
             "Olivier Jacques"                                             
             <[EMAIL PROTECTED]                                             
             com>                                                       To 
             Sent by:                  "Jeannot Langlois"                  
             sipp-users-bounce         <[EMAIL PROTECTED]>            
             [EMAIL PROTECTED]                                          cc 
             ge.net                    sipp-users@lists.sourceforge.net    
                                                                   Subject 
                                       Re: [Sipp-users] Regexp matching    
             05/12/2007 01:15          not working: negated character      
             AM                        classes                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello Jeannot,

Try &gt; for > and &lt; for <
It's undocumented (sigh), but it works.

Olivier.


On 5/11/07, Jeannot Langlois <[EMAIL PROTECTED]> wrote:
  Hmm... Looks like HTML formatting messed up the regexp I was
  highlighting.  Here's the right one:

  Jeannot Langlois wrote:
  >     <action>
  >       <ereg regexp="[^<>]*" search_in="hdr" header="Contact:"
  check_it="false" assign_to="3"/>
  >     </action>
  >

  --
  Jeannot Langlois
  Software Developer / Programmeur-Analyste
  aka "SIP Phone Doctor" and "SIP PUBLISH/PRACK/UPDATE Expert"
  Macadamian Technologies
  (613) 739-5976 #137
  www.macadamian.com

  CONFIDENTIALITY:
  The information contained in this email is intended by Macadamian
  Technologies Inc. for the use by the named individual or entity to which
  it is addressed and may contain information that is privileged or
  confidential. It is not intended for transmission to, or receipt by, any
  individual or entity other than the named addressee expressly permitted
  in this email. If you have received this email in error, please delete it
  without copying or forwarding it, and notify the sender.

  Subscribe to the Critical Path, our free monthly email on software
  management:
  http://www.macadamian.com/subscribe



  -------------------------------------------------------------------------

  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  _______________________________________________
  Sipp-users mailing list
  Sipp-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/sipp-users



--
HP OpenCall Software
http://www.hp.com/go/opencall/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to