Does ksh ~(E) support word boundaries \< and \>? I have tried lengthy
to get it working but I only receive failures.
As example I tried this expression to match three words with the \<
and \> word boundaries but instead \1 captures the whole string:
x="hello 12 world" ; y="${x/~(Elr)\<(.+)\>\<(.+)\>\<(.+)\>/\1}" ;
printf "%s\n" "$y"
hello 12 world
I need an example which works, and if ~(P) supports word boundaries I
need an example here, too.
Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ [email protected] \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users