terça-feira, 29 de julho de 2008

You know what I really wish?

I wish Caché had decent regular expressions. The same ones that Perl made ubiquitous and are supported in C++, Java, Python, Ruby, PHP, Javascript and every other language you can think of.

It's hard to write a wiki without good string processing and regexes.

2 comentários:

Unknown disse...

I've found pattern matching with a $select is as good as regex ?

Composing disse...

Hi squarepeg. Thanks for the comment.

I don't think that they're quite the same thing, though, are they? $select looks to me more like a Lisp "cond" or a C "switch".

You can use these to help build your own string matching and processing functions, but real regexes give you far more power "out of the box".