On Apr 13, 2008, at 2:54 PM, Michael Keuter wrote: >> On Apr 13, 2008, at 6:06 AM, Michael Keuter wrote: >>>> Example regex allowing 3 to 18 numbers >> ^[0-9]{3,18}$ > > Great, indeed very flexible, works too - when you know where to > look to :-). > I'm learning a lot. I changed it to > > ^[0-9\*#]{3,18}$ > > to allow local CID names of my ISDN PBX. But I found out that the > result would be always: > > ^[0-9\\*#]{3,18}$ > > => the backslash was automatically escaped with another backslash. > I changed it in the prefs.txt and then I was OK. > > Michael
Michael, Simple answer, the * character does not have any special meaning inside the [] context, so don't add the backslash and you should be good. ie. ^[0-9*#]{3,18}$ should work. But, do you really want to use * and # characters as part of your astdb key? Would the * and # characters be a natural part of a CID-NUM ? I think I would try to keep my astdb key all numeric [0-9], of course this is a function of your extensions.conf. Lonnie ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]