SIPp uses extended POSIX regular expressions, which are pretty common.
http://regex.larsolavtorvik.com/ lets you test them.

Modifying the XML you posted the other day slightly, <ereg
regexp=":(.+?)@" search_in="hdr" header="From:" check_it="true"
assign_to="_,INVFromUser" /> should do what you want, where the key
thing I'm doing is throwing away the main match (that's the _ in
assign_to, and that includes the : and @) and instead assigning the
first subgroup match to INVFromUser (which is just the user part).

Best,
Rob

On 5 October 2014 08:20, Paul Miller <idkpmil...@sip2serve.com> wrote:
> Hi,
> Calling regex Guru's do any of you know of an online regex tester that uses
> the same form as SIPp?
> Failing that perhaps a few examples could be worked through and even
> documented in the manual set or FAQ?
> I seem to struggle most with only getting what I want and not getting the
> characters I use either side to narrow the search.
>
> for example can someone provide a user part example that only gets the user
> part of say a From header so between the ':' and the '@'
>
> I seem to only ever manage to get the ':user@' which is damned annoying to
> say the least.
>
> Thanks
>
> Paul
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to