Ruby regexp has some options (e.g. i
, x
, m
, o
). i
means ignore case, for instance.
What does the o
option mean? In ri Regexp
, it says o
means to perform #{}
interpolation only once. But when I do this:
a = 'one'
b = /#{a}/
a = 'two'
b
does not change (it stays /one/
). What am I missing?