CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Suggest any Maximum Match Algorithm: Edit Log



tallamohan
New User

Jul 24, 2012, 5:32 AM


Views: 6072
Suggest any Maximum Match Algorithm

Here is the lines of string in a file

abxyz
abpqr
abmno
abcxyz
abcpqr
abcmno


I want the output as:-
ab+[xyz,pqr,mno]
abc+[xyz,pqr,mno]



Here is the real time data which should be in dictionary order:-

AduwoMxita
AduwoMxirA
AduwoMxileVMdi
AduwoMxile

I want the Output as:-

AduwoMxi+[ta,rA]
AduwoMxile[VMdi, ]

File the real time data in the attachment........


(This post was edited by tallamohan on Jul 24, 2012, 5:34 AM)


Edit Log:
Post edited by tallamohan (New User) on Jul 24, 2012, 5:34 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives