Title: A regular expression question

 Now I have a string like

My $string = "sct-1.62-1";

I have 2 regular _expression_ question here,

A. I want to check whether the format is "XXX-XXX-XXX", how can I do it?
B. I want to get 1.62 from the string, how can I do it?

Thanks a lot in advance!

Lixin


Lixin Cai
Security Compliance Tools(SCT)
Location: ITek 2WC135
Phone:313-317-4906
email: [EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to