fork download
  1. s = '[hello-ci.yml ci] works fine for this [second-DONT-EXTRACT-hello-ci.yml ci]'
  2. puts s[/\[([^\]\[]*[ _-]ci)\]/i, 1] # => hello-ci.yml ci
Success #stdin #stdout 0s 6316KB
stdin
Standard input is empty
stdout
hello-ci.yml ci