JRS: In article < >,
dated Wed, 27 Apr 2005 08:44:16, seen in news:comp.lang.javascript, Jon
<> posted :
>I would like to remove all characters after and including the @ from a
>string, for example the string would become
>Joe Bloggs.
S = ""
S = S.split('@')[0]
is another way.
S = ""
T = S.split('@') // T[0] & T[1] may be useful
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.