Dear All,

I have to convert these lines into individual part of name information with a single regular expression.

Input:
B. E. Conway,
J. O. M. Bockris
B. Conway

Output:
<fname>B.</fname><mname>E.</mname><surname>Conway</surname>
<fname>J.</fname><mname>O.</mname> <mname>M.</mname> <surname>Bockris</surname>
<fname>B.</fname> <surname>Conway</surname>


Can anybody help me in getting the single regular expression.

Thanks for the help.

Regards,
Ganesh




-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to