F
francan
I have the below examples where I need to get the lastname using Perl
substitute and replace:
joeAAAAsmith jrAAAAbudget where I need to get smith jr
or this
GeneAAAAEvansAAAAmanager where I need to get Evans
I need to fetch just the lastname which will always be in between the
AAAA and AAAA delimeter: SteveAAAAJones-SingletonAAAAengineer where I
would need to get Jones-Singleton
I used the below and it worked but would like to know if this is the
most efficient way to do it?
s/(.*)AAAA(.*)AAAA(.*)/$2
substitute and replace:
joeAAAAsmith jrAAAAbudget where I need to get smith jr
or this
GeneAAAAEvansAAAAmanager where I need to get Evans
I need to fetch just the lastname which will always be in between the
AAAA and AAAA delimeter: SteveAAAAJones-SingletonAAAAengineer where I
would need to get Jones-Singleton
I used the below and it worked but would like to know if this is the
most efficient way to do it?
s/(.*)AAAA(.*)AAAA(.*)/$2