Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
'# Version: 1.11' or
'* Version: 1.11' or
'Version: 1.11' or
'/* Version: 1.11'
The problem is simple: I cant seem to formulate how to find that combination of /*. This is how all other lines are found, I have tried adding \/\* and so on to if statement, without success. How can I formulate search string to cover for /*-lines, too?
I would appreciate if anyone has idea for thisif( ($row =~/^[#;*\s+]?\s*version:?\s+(\d+\.\d+|)/i)
BR Hewarn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comment mark
by Bilbo (Pilgrim) on Feb 12, 2003 at 11:28 UTC | |
|
Re: Comment mark
by broquaint (Abbot) on Feb 12, 2003 at 11:28 UTC | |
|
Re: Comment mark
by bronto (Priest) on Feb 12, 2003 at 11:30 UTC | |
|
Re: Comment mark
by physi (Friar) on Feb 12, 2003 at 11:28 UTC | |
|
Re: Comment mark
by Mask (Pilgrim) on Feb 12, 2003 at 11:26 UTC |