From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5e9097cf4f3eaf57 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.232.169 with SMTP id tp9mr9343445pbc.6.1333457750746; Tue, 03 Apr 2012 05:55:50 -0700 (PDT) MIME-Version: 1.0 Path: r9ni13763pbh.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: deuteros Newsgroups: comp.lang.ada Subject: Re: Checking to see if a string is a letter Date: Tue, 3 Apr 2012 12:55:50 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <2030859.0.1333426683573.JavaMail.geo-discussion-forums@pbbnv8> <4c3660d0-24bf-4cd8-92d0-b0e8c3e03ce8@z38g2000vbu.googlegroups.com> Injection-Date: Tue, 3 Apr 2012 12:55:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="QF15JMfcBFrmxWoj0L/Q9g"; logging-data="15878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FYNK8RB6f0jwZf8V5BI0x/vilE/3x1J0=" User-Agent: Xnews/2009.05.01 X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 120403-1, 04/03/2012), Outbound message Cancel-Lock: sha1:Wkgd7uZNhC0LlNs3ypuBag1862g= Date: 2012-04-03T12:55:50+00:00 List-Id: On Tue 03 Apr 2012 02:47:04a, Gautier write-only wrote in news:4c3660d0-24bf-4cd8-92d0- b0e8c3e03ce8@z38g2000vbu.googlegroups.com: > On 3 avr, 08:07, deuteros wrote: > >> I mean the string contains a single letter and nothing more. For example: >> >> a �- Legal >> A �- Legal >> aa - Illegal >> a1 - Illegal > > Did you consider to use the string's length ? > Or is the problem more complicated (wildcards etc.) ? There are boolean operators which are also of length one.