Olga,
Perhaps this applies. By example:
$ x='Hello
> World'
$ [[ "$x" = *@(lo\nWo)* ]]
$ print "${.sh.match[1]}"
lo
Wo
Regards,
Dan
----- Original Message -----
From: "ольга крыжановская" <[email protected]>
To: "ast-users" <[email protected]>
Sent: Sunday, October 31, 2010 10:43:44 AM
Subject: [ast-users] ksh pattern matching and extraction across more than one
line?
I need an example how I can use y="${x/~(E)regex/\1}" to do pattern
matching and extraction across more than one line, i.e. if $x is a
string which contains many lines.
If ~(P) is able to do this I need an example for it, 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
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users