The kinds of RE slicing and dicing that are being demonstrated in this discussion are good examples of just how difficult these things can be to explain (or even understand :-). Some non-RE Perl expressions are also difficult for many (including myself) to understand. I would love to see some automated tools (e.g., an expanding browser) that would parse and explain pieces of arcane Perl code. As examples, such a browser might be able to: * add parentheses, to show order of evaluation, etc. * break up REs into reasonable multi-line versions, possibly annotated in some manner * Draw Jeffrey's diagrams for REs. -r -- Rich Morin: rdm@cfcl.com, +1 650-873-7841, http://www.cfcl.com/rdm Prime Time Freeware: info@ptf.com, +1 408-433-9662, http://www.ptf.com MacPerl: http://www.macperl.com, http://www.ptf.com/ptf/products/MPPE MkLinux: http://www.mklinux.org, http://www.ptf.com/ptf/products/MKLP