Coloring lines

Posted by Metsuro on Sat 26 Nov 2005 09:52 PM — 2 posts, 11,319 views.

USA #0
In older verisons of mushclient i could color several lines using just this

^Covered in wood pulp\, (.*?) scuttles in\, its long proboscis(.*?) air\.$

to cover both lines, now i cant even get this

^Covered in wood pulp\, (.*?) scuttles in\, its long proboscis(.*?)

to cover a full line and change the color why is that?
Australia Forum Administrator #1
Well, you have changed the regexp.

The important thing you have omitted is the trailing $. Without it, it only matches up to "long proboscis".
You have followed that by "(.*?)" which is a "non-greedy" wildcard. The least greedy thing it can do is match nothing.

To make it match the whole line, either use:


^Covered in wood pulp\, (.*?) scuttles in\, its long proboscis(.*?)$


or


^Covered in wood pulp\, (.*?) scuttles in\, its long proboscis(.*)