JRS: In article <bb**************************@posting.google.com >,
dated Wed, 27 Apr 2005 08:44:16, seen in news:comp.lang.javascript, Jon
<Jo*******@gmail.com> posted :
I would like to remove all characters after and including the @ from a
string, for example the string jo********@someplace.com would become
Joe Bloggs.
S = "jo********@someplace.com"
S = S.split('@')[0]
is another way.
S = "jo********@someplace.com"
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.