Randy Webb
05-13-2007, 09:46 PM
Jeff said the following on 5/13/2007 12:07 AM:
> scripts.contact wrote:
<snip>
>>
>> var test_string='one_two-three',x;
>
> What's with the ,x? Is that like doing this:
>
> var test_string='one_two-three';
> var x;
Yes, it is the same thing.
>> if(x=test_string.match(/(.*)_(.*)-(.*)/)){
>> alert(x[2])
>
> Ahhh! Thanks!
>
> OT. Is Martin Honnen still around?
Yes, you just don't see him as much anymore as you used to.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
> scripts.contact wrote:
<snip>
>>
>> var test_string='one_two-three',x;
>
> What's with the ,x? Is that like doing this:
>
> var test_string='one_two-three';
> var x;
Yes, it is the same thing.
>> if(x=test_string.match(/(.*)_(.*)-(.*)/)){
>> alert(x[2])
>
> Ahhh! Thanks!
>
> OT. Is Martin Honnen still around?
Yes, you just don't see him as much anymore as you used to.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/