Re: Finding the end of string with escapes
- Posted by Bernie Ryan <xotron at BUFFNET.NET> Mar 27, 2000
- 559 views
Set a flag when you see a escape character and save it temporarly If the next character is a quote then do what ever action you need for the escape/quote combination ( you didn't say what you are doing with it ) else output the escape character that you saved and the character that you just found and reset the flag. If you find a quote and you don't have a escape flaged then treat it as a real quote.