Brano Gerzo am Donnerstag, 13. Juli 2006 21:23:
[...]
> yes, my example was ambiguous sorry, for that. Here are more examples:
>
> word
> word word
> word word word
> 1 word
> 1 word word word
> 1 word en,pt,sk
> 1 word en 1cd
>
> so:
> - first digits are optional
> - then it is followed by word(s), which are mandatory
> - then it should be 1 language (en), or set of any number of languages
> (en,sk,pt) - digit(cd) is optional

This data format is ambigous, consider:

1 word en 1cd

Is 'en' here the last word or an optional language?

There must be additional rules, for example:
- words (at least the last one) must have more than 2 chars
- the last word mustn't be a language code

Dani

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to