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?
Straight from the go-to source for regular expressions:
I could also turn up this usage example:
So I guess this is rather a thing for the compiler, for a single line that is executed multiple times.