akelabanda
Programmer
Hi
I want some help in pattern matching. Given a String, I want to
extract portions and store in variables.
For example, the following is the string
# 220 xxxx.com -- Server ESMTP (iPlanet Messaging Server 5.0 (built Oct 12 2000))
I want to extract "iPlanet Messaging Server" in one variable
and "5.0" in another.
Right now I'm splitting on "(" and then substr'ing for the above
separately.
Is there a better way to do this ? I'm not a master at "pattern
matching - regular expr"
Thanks for your help in advance.
Regards
Rajeev
I want some help in pattern matching. Given a String, I want to
extract portions and store in variables.
For example, the following is the string
# 220 xxxx.com -- Server ESMTP (iPlanet Messaging Server 5.0 (built Oct 12 2000))
I want to extract "iPlanet Messaging Server" in one variable
and "5.0" in another.
Right now I'm splitting on "(" and then substr'ing for the above
separately.
Is there a better way to do this ? I'm not a master at "pattern
matching - regular expr"
Thanks for your help in advance.
Regards
Rajeev