|
i8890321 Newbie
Joined: 28 Aug 2008 Posts: 3
|
Posted: Fri Aug 29, 2008 5:33 am
line matching problem |
i want to check a line ends with "
how do i do that? the following is my stupid try, it doesn't work.
123" is the line that i am checking
%ends( "123"", """)
if the function %end should not be used, how about %match ??please just give me a code that with match the line ending with " |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Aug 29, 2008 10:04 am |
zMud has a lot of trouble dealing with quotes. Assuming you are working with a trigger this would detect it properly.
#IF (%ascii(%rightback(%line,1))=34) {#SHOW Ends with a quote} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Fri Aug 29, 2008 8:54 pm |
is it just the end of a given string, or are you trying to fire off mud input?
#TR {"$} {stuff}
That should work for the latter. '$' is an anchor for the end of line. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|