Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Coloring lines
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Metsuro
USA (389 posts) Bio
|
Date
| Sat 26 Nov 2005 09:52 PM (UTC) |
Message
| 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? |
Everything turns around in the end | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 27 Nov 2005 07:09 PM (UTC) |
Message
| 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(.*)
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,537 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top