Match two possible strings (RegExp)

Just a little example of the use of Ruby Regular expresions: matching two given possible strings with one.

status = 'reopened'

status = 'closed' if status =~ /(opened|reopened)/  

Status will be closed only if status was reopened or opened. This allow as to create some workflows on the code, for example.