Re: Finding the position of a character in a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tuesday 24 Jul 2012, Ishfaq Malik wrote:
> It there a native asterisk dialplan function which will tell me the
> position of a specific character in a given string?
> 
> eg if I wanted to find what position the '@' was at in ${SIPURI}

Worst case scenario: write a loop to iterate over each character and 
stop at first match.

If you have ODBC installed: your SQL back-end should be able to perform 
this function for you.

See if the dialplan function FIELDNUM can be used.

There must be many more ways.

Regards,

-- Raj
-- 
Raj Mathur                          || raju@xxxxxxxxxxxxx   || GPG:
http://otheronepercent.blogspot.com || http://kandalaya.org || CC68
It is the mind that moves           || http://schizoid.in   || D17F

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Arts & Crafts]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]


Add to Google Powered by Linux