in reply to Re: regexp need a match characters and spaces
in thread regexp need a match characters and spaces

This works for the OP's code, but would force the need for a trailing newline if the OP wanted to match what came after c.

If you swap the regex for the following you'll remove that requirement. Note the I've had to swap out the \s+ as this was scooping up the newline character if there was no data on the line, resulting in the regex matching the whole of the following line.

/^b +([^\n]*)$/m;
---
my name's not Keith, and I'm not reasonable.