Or simply : if ( $var(x)=~ "^foo[0-9]+" ) Regards, Bogdan
Premalatha Kuppan wrote: > Thanks. > > On Sun, Jul 11, 2010 at 4:25 AM, mayamatakeshi > <[email protected] <mailto:[email protected]>> wrote: > > > > On Fri, Jul 9, 2010 at 8:10 PM, Premalatha Kuppan > <[email protected] <mailto:[email protected]>> wrote: > > Please tell me how to search for special character in a string. > > {s.select,0,_} this would return the value; instead if i want > to search whether special characters exist or not, which > transformation should i use. > > > Use module regex instead: > http://www.opensips.org/html/docs/modules/1.6.x/regex.html#id228196 > > > _______________________________________________ > Users mailing list > [email protected] <mailto:[email protected]> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Bogdan-Andrei Iancu OpenSIPS Bootcamp 20 - 24 September 2010, Frankfurt, Germany www.voice-system.ro _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
