You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bill Gosse <bi...@benefitfocus.com> on 2006/02/01 23:15:34 UTC

Splitting on a blank space

Hi Guys,

 

Does anyone know how or if a string can be split on a blank space with
the split function. Here's my first attempt that didn't work:

${__split(${username},splitusername, " ")}  

 

The username variable has "bill gosse" in it. My splitusername_1
variable gets the whole string while splitusername_2 gets nothing. Any
help will be greatly appreciated.

 

Thanks,

Bill

 

 



****************************************************************************************
BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to bfpostmaster@benefitfocus.com, and destroy all copies or derivations of the original message. Thank you.  (BFeComNote Rev. 08/01/2005)
***************************************************************************************

Re: Splitting on a blank space

Posted by sebb <se...@gmail.com>.
On 01/02/06, Bill Gosse <bi...@benefitfocus.com> wrote:
> Hi Guys,
>
>
>
> Does anyone know how or if a string can be split on a blank space with
> the split function. Here's my first attempt that didn't work:
>
> ${__split(${username},splitusername, " ")}
>

No need to quote the space.

Try

${__split(${username},splitusername, )}

instead

>
> The username variable has "bill gosse" in it. My splitusername_1
> variable gets the whole string while splitusername_2 gets nothing. Any
> help will be greatly appreciated.
>
>
>
> Thanks,
>
> Bill
>
>
>
>
>
>
>
> ****************************************************************************************
> BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to bfpostmaster@benefitfocus.com, and destroy all copies or derivations of the original message. Thank you.  (BFeComNote Rev. 08/01/2005)
> ***************************************************************************************
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org