develooper Front page | perl.beginners | Postings from February 2002

Insert delimiter between number and alpha

Thread Next
From:
Frank Newland
Date:
February 7, 2002 09:28
Subject:
Insert delimiter between number and alpha
Message ID:
E767AEA6B74BD511A0C80002A507C5014741A5@barney.ftt.net
All, 

My input looks like this
==============
5544#1341343BORIS
6200#321BOWSER
89232652#6213VERONICA
===================
I want to put a delimiter (#) between the rightmost number and the left most
alpha
Resulting in 
================
5544#1341343#BORIS
6200#321#BOWSER
89232652#6213#VERONICA

Any suggestions for a regex that will do this?

Thanks,
Frank

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About