Greetings,
I'm having a regex problem that I hope you can help me with. Consider this test:
like( $content, qr(<td>$args->{class}</td> .* <td>$args->{timestamp}</td> )msix , '/report/classes dr_test_class ' );
And the results:
# Failed test '/report/classes dr_test_class ' # at ./nhw.pl line 153. # '<tr> # <td>dr_test_class</td> # <td>2014-07-23 18:01:01-04</td> # </tr> # # ' # doesn't match '(?^msix:<td>dr_test_class</td> # .* # <td>2014-07-23 18:01:01-04</td> # )'
Why does the match fail?
Neil Watson
watson-wilson.ca
In reply to Help with regex and 'like' in test::more by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |