fork download
  1. #!/bin/bash
  2. Targetpath='puts/push/1234/request'
  3. rx='puts/push/[0-9]+/request'
  4. if [[ "$Targetpath" =~ $rx ]]; then echo 1; else echo 0; fi
Success #stdin #stdout 0.01s 5504KB
stdin
Standard input is empty
stdout
1