View Full Version : stripping first 10 characters of a string..how?
BrightNail
01-28-2003, 11:16 PM
whats the quickest most effective way, that is crossbrowser & platform compatible, to strip the first 10 characters from a string....
ala..
fuejUjelm7KEEPTHISSTUFF
I want..
KEEPTHISSTUFF
?
ca_redwards
01-28-2003, 11:22 PM
Originally posted by BrightNail
whats the quickest most effective way, that is crossbrowser & platform compatible, to strip the first 10 characters from a string....
ala..
fuejUjelm7KEEPTHISSTUFF
I want..
KEEPTHISSTUFF
?
_old="fuejUjelm7KEEPTHISSTUFF";
_new=_old.slice(9);
whammy
01-28-2003, 11:52 PM
Funny, I just used the slice method again today.
BrightNail
01-29-2003, 12:01 AM
hahahahah,
excellent!...worked like a charm. Funny, I could of just looked for the slice property....geeez. I must be getting lazy.
thanks again..--> appreciate it.
BrightNail
whammy
01-29-2003, 12:04 AM
That's when having O'Reilly's "definitive guide" really comes in handy. ;)
ca_redwards
01-29-2003, 12:14 AM
Originally posted by whammy
That's when having O'Reilly's "definitive guide" really comes in handy. ;)
I have several O'Reilly books: Dynamic HTML, JavaScript Application Cookbook and Web Design in a nutshell; plus several other O'Reilly titles about Java.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.