You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by mai_garduce <mh...@yahoo.com> on 2010/02/16 10:26:48 UTC
how to manage spaces in the reg expression
this regex works now but i want to rewrite this in a better way:
if/s(keycode/s==/s13/s&&/sinput.type/s!=/s"textarea")/s{
/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/sjsSubmit\('http://www.test.com/test/JopletManager?(.+?)'%5c)
--
View this message in context: http://old.nabble.com/how-to-manage-spaces-in-the-reg-expression-tp27605565p27605565.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: how to manage spaces in the reg expression
Posted by sebb <se...@gmail.com>.
On 16/02/2010, mai_garduce <mh...@yahoo.com> wrote:
>
> this regex works now but i want to rewrite this in a better way:
>
> if/s(keycode/s==/s13/s&&/sinput.type/s!=/s"textarea")/s{
> /s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/sjsSubmit\('http://www.test.com/test/JopletManager?(.+?)'%5c)
/s is not a space.
If you want to match multiple spaces, use
\s+
Or, for an exact number:
\s{12}
Min/Max
\s{2,5}
> --
> View this message in context: http://old.nabble.com/how-to-manage-spaces-in-the-reg-expression-tp27605565p27605565.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org