[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04036] Re: RegExps and latin_1

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-15 12:50:59 UTC
List: ruby-talk #4036
> Ruby uses isalnum() to determin what is word character, so making the
> extension that calls setlocale(), and calling it before any regexp
> is compiled, may work for you.

I can wait for real i18n, and in the meanwhile use '[\w&auml;]' etc (&auml
is 'a' with umlauts, not five characters :) when needed. One remark: Perl is
not handling this either.

> The REAL internationalization is the theme for 1.7.  Stay tuned.

I can hardly wait :).

One more question: how about allowing redefinitions of rexexp character
classes? I'm not sure how big change this would be in the regexp engine, but
it would surely be neat. Then my (mental) semantic distance would be really
short if I'm coding some text processing utilities for artificial language
'Foo 9 from Outer Space' which has only two characters in whole language:
'f' and '9'. Redefining one word character '\w' to match [f9] would make
things nice.

	- Aleksi

In This Thread

Prev Next