On Jan 7, 2009, at 6:21 PM, Jeff Foster wrote:

Looking at the code, re-find uses re-groups which explicitly says that
it either returns a vector or a string.  This is clunky to deal with -
is there any reason it doesn't always return a vector?

Whether it returns a vector or string depends on the structure of the regular expression you're searching for, not the input data. At the time you write the code you can know which it will return. Returning just a string from a "simple" regex is a convenience when when using a regex search in a chain of operations.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to