From: Alex Young Date: 2007-03-14T06:29:37+09:00 Subject: Re: Regular Expression Help eddieroger wrote: > I'm trying to write a regular expression for Ruby and running into > roadblocks. I'm not new to the concept of a regex, and have written > many before, but I'm new to implementation in Ruby and working with a > particularly pesky regex. > > The string I need to match is: > *'''ABC'', [[Acronym Definition]] > > The only parts I want to change are the ABC and "Acronym Definition." > So, the asterisk, quotes and brackets should be there, but - to make > it harder - the brackets are optional. What's the output you're going for? -- Alex