N
neverstill
Hi-
I need to parse some strings and I was thinking that I might use Regular
Expressions. I was curious though(I have never used them), are they
processor intensive to use?
Let's say that I had a string(url)
http://www.SomeDomain.com/Products?id=rt2355
and I wanted to parse out the word "Products"
Now I know I could get the index of the last '/' and the first '?' and then
get a substring from that, but I'm thinking there would be a pretty easy
Regular Expression to do that as well. Question is, when do you decide
which is better?
What do you all think?
Thanks,
Steve
I need to parse some strings and I was thinking that I might use Regular
Expressions. I was curious though(I have never used them), are they
processor intensive to use?
Let's say that I had a string(url)
http://www.SomeDomain.com/Products?id=rt2355
and I wanted to parse out the word "Products"
Now I know I could get the index of the last '/' and the first '?' and then
get a substring from that, but I'm thinking there would be a pretty easy
Regular Expression to do that as well. Question is, when do you decide
which is better?
What do you all think?
Thanks,
Steve