[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Hello. Does anyone know of a good tutorial for regex? I know basic syntax, but I never know what to search for when I want something more complex. How can I tell it to keep searching and replacing (even on text it's already replaced) until it isn't possible to replace any more? Also, I can't figure out how to use backreferences. If I have some string which may or may not have an arbitrary number of /'s at the start, how do I get it to print the string without all the starting /'s? This is meant for PHP, but I'm currently trying to test the regex on grep/sed. Thanks. Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html