[Omake] String manipulation
Aleksey Nogin
anogin at hrl.com
Mon Aug 6 15:41:24 PDT 2007
Jared,
Do you know about the match function? See
http://omake.metaprl.org/omake-language.html#section:match and
http://omake.metaprl.org/omake-base.html#function:match
This should give you most of the regexp-based matching and substitution
(except no easy support for case-insensitive matching).
Aleksey
On 06.08.2007 13:08, Jared C. Davis wrote:
> Hi,
>
> Would it be possible to get some string-manipulation routines like
> regular-expression based pattern matching and substitution added to
> omake?
>
> It might be that I should be able to write my own using fsubst, but
> that seems to be intended for files, and it didn't seem to support
> case-insensitive matching. I think my other option is to use programs
> like sed, but it seems sort of gross to be calling out to system
> programs to do string manipulation, and one of the things I really
> like about OMake is how I typically don't have to rely on system
> programs, because commands like "rm" and "cat" are built in.
>
> Thanks!
> Jared
>
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list