![](templates/Classic/images/spacer.gif) |
cingulli Wanderer
Joined: 30 Aug 2001 Posts: 53 Location: Finland
|
Posted: Sun Aug 11, 2002 11:07 am
Pattern-matching |
how to _only_ match a line like:
blaa blaa 'asdfasdf'
and not lines like:
blaa blaa 'asdfasdf' boobooboo
so i want a trigger which triggers only when the line has only its pattern-match
#tr {blaa blaa 'asdfasdf'} {#co blink} and nothing else, so it wont trigger when the line has any other text, like that boobooboo or any other text for that matter.
I'm too tired to look for this from the helps :(. |
|
|
![](templates/Classic/images/spacer.gif) |
Kjata GURU
![](images/avatars/190086853941eff9946d4cf.jpg)
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Aug 11, 2002 12:38 pm |
Use ^ in the pattern to specify where zMUD should match the start of a line and $ to specify where it should match the end of a line. Thus:
^blaa blaa 'asdfasdf'$
will only match:
blaa blaa 'asdfasdf'
and not:
boobooboo blaa blaa 'asdfasdf'
blaa blaa 'asdfasdf' boobooboo
boobooboo blaa blaa 'asdfasdf' boobooboo
Kjata |
|
|
![](templates/Classic/images/spacer.gif) |
|
|