
March 16th, 2005, 08:25 AM
|
|
Contributing User
|
|
Join Date: Aug 2003
Location: missouri
Posts: 165
Time spent in forums: 11 h 27 m 51 sec
Reputation Power: 10
|
|
|
Parse characters of a string??
Need a little help trying to figure out the correct way to parse some characters of a string.
var X = "This is a Test, SHP - 1"
I need to get all the characters after the "SHP - ". There will be spaces in that substring. "SHP(space)-(space)"
Here are a few problems where it makes it more difficult for me.
When same characters are involved such as the "-".
If var X = "This is - a test, SHP - 1234"
The "SHP - " will always be at the end of the strings. So basically I need everything after that last (space) in "SHP - ".
Thanks!
|