From: Gary Wright Date: 2011-05-27T07:45:06+09:00 Subject: Re: Need help bringing select array lines together On May 26, 2011, at 6:33 PM, 7stud -- wrote: > Johnny M. wrote in post #1001292: >> >> I don't think any regex, being a finite automaton, could handle nested >> strings properly. >> > > There are regexes for nested parentheses--they use recursive regexes. You are both right. Johnny is using the formal language definition of regular expression while 7stud is using the term to refer to particular programming language constructs. Most modern regexp libraries allow for patterns that go well beyond the formal language concept of regular expressions. Still, I'm not sure how you would defined nested strings using a single quoting character: "stuff"otherstuff"morestuff" Is that an example of a nested string or just two strings with otherstuff inbetween? Gary Wright