in reply to Regexpression is not matching
If you want to match that exactly line and nothing else and extract no date, don't use a regex. Use eq:
use constant THE_LINE => q[ Code (inc. data) RO Data RW Data + ZI Data Debug Object Name]; ... if( $MapFile->[ $iterator ] eq THE_LINE ) { ... }
As for why your regex doesn't match.
Did you chomp the newlines off when you read the lines in? Does the leading whitespace contain tabs perhaps? Or elsewhere in the line?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexpression is not matching
by tobias_hofer (Friar) on Jun 05, 2013 at 14:29 UTC |