fork download
  1. #!/bin/bash
  2. s='[:variable_one] == options[:variable_two]'
  3. grep -o "\[:[^][]*]" <<< "$s"
Success #stdin #stdout 0.01s 5692KB
stdin
Standard input is empty
stdout
[:variable_one]
[:variable_two]