http://www.ibm.com/developerworks/cn/education/aix/au-unixtips3/section3.html http://mengzhuo.org/regex/