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.
Thanks for the help!