Perl regex question -


How to make a Perl routine expression that matches a pattern like this

Begins with and ends with AAA

(1) Within a line, (2) spanning multiple lines

Please help, I regularly publish

In only one line:

  / XXX. * AAA /   

Multiple Row Spread:

  /XXX.*AAA/s   

An additional Use / g To switch to match all events.

Comments