#!/bin/bash
Targetpath='puts/push/1234/request'
rx='puts/push/[0-9]+/request'
if [[ "$Targetpath" =~ $rx ]]; then echo 1; else echo 0; fi