^(.*)? Match all text
http://jkorpela.fi/perl/regexp.htmlf
() Group
. any character
? preceding is optional
*

the brackets inside will be called as groups .
. represent any single character except line break,
* represent repeat of previous character n number of times.
? represent * is optional.
so finally , in between my name, the value will be matched as created as Groups.
So Group1 is pradeep
Group2 is kumar
and so on with the match number.
() Group
. any character
? preceding is optional
*
the brackets inside will be called as groups .
. represent any single character except line break,
* represent repeat of previous character n number of times.
? represent * is optional.
so finally , in between my name, the value will be matched as created as Groups.
So Group1 is pradeep
Group2 is kumar
and so on with the match number.
No comments:
Post a Comment