Dealing with incoming strings with special characters in them
Posted 31 August 2011 - 08:56 PM
So I have an event triggering on matches regexp for ^(.+)$ It's defined as:
This works great, unless the incoming line contains a " or ', in which case it barfs with:
%% Error: [string "?"]:2: ')' expected near 'that'
How do I get the string properly quoted so I can work with it?
Posted 01 September 2011 - 06:20 PM
Posted 04 September 2011 - 12:26 PM
How are you calling the Lua script? If you can give me an easy repro case I'll take a look to see what might be happening.
Posted 04 September 2011 - 07:46 PM
With condition "matches regexp" doesn't fire the event on a blank line from the server.
Posted 05 September 2011 - 08:04 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users