Posted by
| Nick Gammon
Australia (22,988 posts) bio
Forum Administrator |
Message
| Well that had me going for a while, as I was able to reproduce it, but couldn't see why ...
First, I would use ^ and $, using \A and \Z is confusing - I mainly use those in multi-line triggers.
But the real problem is the hidden text you aren't seeing, because it is omitted from output. If you turn triggers off, and do the runto, this is what you see:
Eastern High Road (420)
<MAPSTART>
Eastern High Road
---
, ` [ ] ( * , ` ~ ~
, ` , ` [ ] , ` [?] , ` ~ ~
, ` , ` [ ] , ` , ` , ` ~ ~
[ ] [ ] [?] [#] [ ] [ ] ===
, ` , ` [ ] , ` , ` , ` ~ ~
, ` ; ; [ ] [?] , ` , ` ~ ~
, ` [ ] , ` , ` ~ ~
[ Exits: N E S W ]
<MAPEND>
The line after <MAPSTART> is the one which is firing, not the one with the number on it.
I'm not sure what to suggest as a fix, it depends what you are trying to do. However that explains *why* it is doing it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|