Author Topic: string parsing in regexroue  (Read 3183 times)

xyswitchz

  • Newbie
  • *
  • Posts: 26
    • View Profile
string parsing in regexroue
« on: April 10, 2018, 07:09:27 AM »
Hi

in regexroute I have

^.*$=echo answered ${id}

if ${id} is sip/21

how can I can i extract '21' from it?

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: string parsing in regexroue
« Reply #1 on: April 11, 2018, 12:55:50 AM »
${id}^sip/\(.*\)$=echo \1