#!/bin/bashTargetpath='puts/push/1234/request'rx='puts/push/[0-9]+/request'if [[ "$Targetpath" =~ $rx ]]; then echo 1; else echo 0; fi
Standard input is empty
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!