Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Grab characters up to a certain character
April 21, 2005, 2:10 pm
rate this thread
I'm writing a script, that parses a chat log into an html file, and
I've done a fairly good job so far, it works quite well. But I want to
make the nickname of a person bold. I have a string like so:
imphasing: Hi people.
and I want to replace all the characters up to the ": " with
I tried an index, but it didn't seem to return the character position
of ": "...I can't search and replace "imphasing: ", because other
people are going to be talking too.
Any ideas? if I could just get the "imphasing: " into a string, it
would be nice and easy...