J
Junkone
my pattern should match either import or delete
However it does not seem to be working.
irb(main):014:0> pattern="([import]|[delete])"
=> "([import]|[delete])"
irb(main):015:0> pattern.match("import")
=> #<MatchData:0x2e76f9c>
irb(main):016:0> $1
=> nil
However it does not seem to be working.
irb(main):014:0> pattern="([import]|[delete])"
=> "([import]|[delete])"
irb(main):015:0> pattern.match("import")
=> #<MatchData:0x2e76f9c>
irb(main):016:0> $1
=> nil