Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] a japanese dictionary: regex v. db query
- Date: Tue, 4 Apr 2006 10:30:45 -0400
- From: Jim <jep200404@example.com>
- Subject: [tlug] a japanese dictionary: regex v. db query
- References: <442EADBF.3060701@example.com> <a2588e100604010926o733cdc7en57335349dac956a8@example.com> <aaa8c4580604011516m6605d116j3df1fb29deabb94b@example.com> <a2588e100604031616v60663498qdb3d3d03bed3a3f6@example.com> <4432084F.6050400@example.com> <87u099h8rt.fsf@example.com>
"Stephen J. Turnbull" wrote: > What is the regular expression for "all characters with 16 strokes"? Oh boy. That made me think. That was the right question to highlight the limitations of regexes. I can not think of how to express "all characters with 16 strokes" in the present schemes of regexes as I know them. Of course one could extend regexes to also match _attributes_ of characters, such as brush stroke count. As if the syntax of regexes wasn't "simple" enough already, I shudder at the thought of what the extended regex syntax would be. The complement, regexes in database queries already exists. So one has classic tradeoffs. One can extend regexes to (perhaps poorly) do what databases do well. Or one can use databases that can handle regexes in their queries. To looking for all the 16 stroke characters in a document, I would want a regex. For a dictionary, a database would probably be fine. Which brings us back to Stibbe's interest: a Japanese dictionary. Extending regexes to handle attributes would likely be a significant project in its own right, so Stibbe might want to stick to the tools presently available. I.e., a database.
- Follow-Ups:
- Re: [tlug] a japanese dictionary: regex v. db query
- From: David Stibbe
- Re: [tlug] a japanese dictionary: regex v. db query
- From: Joe Larabell
- Re: [tlug] a japanese dictionary: regex v. db query
- From: Stephen J. Turnbull
- References:
- [tlug] a japanese dictionary
- From: David Stibbe
- Re: [tlug] a japanese dictionary
- From: dabicho
- Re: [tlug] a japanese dictionary
- From: Michael Engel
- Re: [tlug] a japanese dictionary
- From: dabicho
- Re: [tlug] a japanese dictionary
- From: David Stibbe
- Re: [tlug] a japanese dictionary
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] a japanese dictionary
- Next by Date: Re: [tlug] a japanese dictionary: regex v. db query
- Previous by thread: Re: [tlug] a japanese dictionary
- Next by thread: Re: [tlug] a japanese dictionary: regex v. db query
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links