From: Sam Roberts Date: 2003-01-27T14:41:06+09:00 Subject: It would be nice to be able to get a regexes string back... class Decoder FOO = %r{foo} BAR = %r{bar} FOOBAR = %r{#{FOO.regex}|#{BAR.regex}} ... I'm having to do FOO = 'foo' RE_FOO = %r{FOO} So I can use the regex bits in other regexes, and as regexes themselves. I'd love any suggestions on a nicer way to do this! Thanks, Sam