in reply to Re^5: better (faster) way of writing regexp
in thread better (faster) way of writing regexp
Well, it's not that hard to write a perl one-liner and see if any of them matches \d, is it?Actually it is... From the links pointed out in Re^3: better (faster) way of writing regexp, I concluded that the exact interpretation of \d in Perl is still under discussion, and at least not implemented yet in Perl 5.8 (which is running here); and, I have not found an easy way to use Unicode on the Command Line in Windows 2000.
As I said before, to be considered a digit, you'll have to be a number between 0 and 9... which would apply of 'ichi' (1), but, as you point out, certainly not for 'jue' (10). UPDATE: My comment regarding windows command line was silly. I can always represent Unicode characters by \x(...), so, yes, you are right, it would have been easy to have written a short perl program to test it!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: better (faster) way of writing regexp
by JavaFan (Canon) on Dec 02, 2009 at 17:49 UTC |