Mar-23-2019, 06:27 PM
First, everyone chill. There was ambiguity. You said you had trouble with a regex. You said nothing about a solution needing to be a regex. Frequently we have to tell people posting here that they are using the wrong solution, such as people trying to use regexes to process HTML. But we have clarity now, let's just move forward.
Second, Dead_Eye's solution can catch the second quote if you put it in there (after the +).
Third, my solution is based on any character, his is based on non-whitespace characters. If there is whitespace before the quote his will not match. If there is a non-whitespace character directly after the quote, his will need a non-greedy operator (?) just like mine did.
Second, Dead_Eye's solution can catch the second quote if you put it in there (after the +).
Third, my solution is based on any character, his is based on non-whitespace characters. If there is whitespace before the quote his will not match. If there is a non-whitespace character directly after the quote, his will need a non-greedy operator (?) just like mine did.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures