the demo for regex analyze