How to get string between two characters in asterisk

I want to get string between ‘/’ and ‘-’ . Can I get index of a character in asterisk?

I think you need to give a bit more info…
In this case I would say the string between the two characters is ‘and’…

Maybe show a bit of logging to make clear what string you are talking about…

There are multiple functions for manipulating strings you could do with this.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_CUT

https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_FIELDQTY

https://wiki.asterisk.org/wiki/display/AST/Function_SHIFT

1 Like