in reply to Re^2: Pattern match not working sometimes
in thread Pattern match not working sometimes
The issue is the ^ anchor and the character causing grief is a new line at the start of the line! If you change your match to /(\C\C\C\C)(.*)/s the problem is fixed. Note that there is no need for anchors in any case - you want the first four octets followed by anything so that will always match at the start of the string (unless there are fewer than 4 octets).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pattern match not working sometimes
by dantheman1210 (Beadle) on Mar 18, 2012 at 23:31 UTC |