# Re: Grabbing quoted substrings

**URL:** <https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80010>\
**Category:** Ruby\
**Created:** [December 20, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80010 "2006-12-20T20:45:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [December 20, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/re-grabbing-quoted-substrings/80010/1 "2006-12-20T20:45:43Z")

</div>

From: Tom W. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]

> > > > [“x”, “y”, “z”, …, “mach”]  
> > > > Though that will capture the surrounding quotes as well,  
> > > > which was not specified in the requirements.

Oops, so it wasn’t. (I looked at it and my mind said, “Huh, he’s got  
quotes there…I guess he wants them.” Apparently my ruby parser is  
borked.)
