[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] Re: Regular expression for brivla?
On Sun, 8 Feb 2004, Robin Lee Powell wrote:
> Is there a known regular expression that covers all classes of
> brivla?
>
> What about one that's just really close?
>
> Perl extensions are fine.
>>From my (admittedly poor) understanding of regexes suggest that it is
going to be very long-winded. Basically, you have to look at only the
first five letters, exclude apostrophes, and see if there are at least two
adjacent consonants. I can't think of any other way than doing something
like:
[[bcdfgjklmnprstvxz][bcdfgjklmnprstvxz]*]
[[?][bcdfgjklmnprstvxz][bcdfgjklmnprstvxz]*]
[[?][?][bcdfgjklmnprstvxz][bcdfgjklmnprstvxz]*]
...
]
This, of course, presupposes that you have already determined that the
string you are checking is a valid Lojban word.
--
Arnt Richard Johansen http://arj.nvg.org/
"This is the sort of bloody nonsense up with which I will not put!"
--attributed to Winston Churchill