Need to refine the previous alias.

Posted by Neoshain on Thu 10 Oct 2013 05:27 PM — 3 posts, 14,111 views.

#0
So, this is the alias I'm using now:

 
<aliases>
  <alias
   match="rpose*"
   enabled="y"
   send_to="12"
   omit_from_output="y"
   ignore_case="y"
   sequence="100"
  >
  <send>presort = string.gsub ("%1", "%a+", replacements)

message = string.gsub (presort, "'([%a%d%s.,:;!?@]*)'", "''@c%%1@y''")
Send("rpose @y" ..message.."@n")

</send>
  </alias>
</aliases>


I need to change it to match double quotations, ( " ) not singles. ( ' ) I've tried this:

 


message = string.gsub (presort, "%"([%a%d%s.,:;!?@]*)%"", "''@c%%1@y''")
Send("rpose @y" ..message.."@n")

</send>
  </alias>
</aliases>


But I can see why this doesn't work. Is there a way to do this?

Australia Forum Administrator #1
If you want double quotes in a string, start and end it with single quotes.

eg.


print ( 'Nick says "hello" ' )
#2
Wow. Omgsh. That was so simple.