| View previous topic :: View next topic |
| Author |
Message |
stormdragon2976
Joined: 19 Nov 2010 Posts: 46 Location: /dev/null
|
Posted: Sun Dec 18, 2011 3:00 pm Post subject: regexp question |
|
|
I was reading regexp help and found that if you use %S it matches any number of nonspaces. I wanted to set a trigger for when players arrive and not when mobs. In the area I use the trigger in mobs all start with A or The. So, my action looks kind of like this:
#act {%S has arrived.$}
My understanding of this syntax is that a single word has to proceed has arrived. the action, however, is still going off when mobs walk into the room. A guard has arrived is still causing it to fire. So, am I missing something here?
Thanks _________________ Storm
Follow me on Twitter: http://twitter.com/stormdragon2976
or on Identica: http://identi.ca/stormdragon2976 |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Sun Dec 18, 2011 4:59 pm Post subject: |
|
|
It matches zero or more non spaces, for this to work you have to force start of line matching:
#act {^%S has arrived.$} |
|
| Back to top |
|
 |
|