in reply to Re^4: Constructing a hash - why isn't my regex matching anything
in thread Constructing a hash - why isn't my regex matching anything
Because there is nothing to match. An empty line, all whitespace line, is empty :) It has no dots. It has no dashes, semicolons, slashes. Your regex won't match. :D
what change should I do in regex to match them?
Allow for the possibility of failure,ie test for success, just like this guy shows
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Constructing a hash - why isn't my regex matching anything
by perl_mystery (Beadle) on Dec 19, 2010 at 09:23 UTC | |
by Anonymous Monk on Dec 19, 2010 at 09:37 UTC | |
by Anonymous Monk on Dec 19, 2010 at 10:24 UTC |