Glenn, how does the egrep pattern below look like if I want a xgrep
pattern instead?
----- cutme ----
xmltext='<h1><div> a text </div><!-- a comment (<disabled>) --></h1>'

dummy="${xmltext//~(Ex-g)(?:
#       (<!--.+-->)|   # xml comments
        (<.+>)|  # xml tags
        ([^[><]]+)     # xml text
        )/dummy}"
print -v .sh.match
----- cutme ----

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

Reply via email to