I think you will be clear when you study this
Regular_expression[
^] you will still get a clear and new idea. You have more questions on this particular topic is better to refer that and sorry if you already refereed it completely .If i get any idea i will post it soon.