| |||||||||||
| |||||||||||
simple reg exp Posted by sivga (sivga), 14 April 2006 hi all thi is my program my output is version 2.17.8.9 i need to match 2.17so if i use while(<p>) { if (/[0-9]+\.[0-7][0-7]/) { } } is not working any help pls. thanks Posted by admin (Graham Ellis), 15 April 2006 Hi, Welcome. You really need to put some sort of action in the if block - otherwise the code as posted will just go through the whole file that I presume you've already opened on a file handle called p, find the matching lines, and do nothing with them.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |