in reply to Explaining a Regular Expression
The regular expression most simply means that if the string stored in $data contains only 0 or more whitespace characters (between the start of a line and the end of the line) then do this. Else do that. This will match blank lines and lines that contain only whitespace.
As mentioned you should read perlre (link found above).
|
|---|