in reply to regex problem

As anyone can clearly see from the sample you've provided of the code you've tried that's not working the problem is on line 17.

The cake is a lie.
The cake is a lie.
The cake is a lie.