Hi, I have strings like this: [code] $string="OWN - NLM STAT- Publisher DA - 20091005 AU - Gannon AM AU - Turner EC AU - Reid HM AU - Kinsella BT AU- XYZ AD - UCD School of Biomolecular and Biomedical Sciences"; [/code] I want to parse these tags and create an hash for this string. The output should be like this: [code] OWN- NLM STAT- Publisher DA - 20091005 AU- Gannon AM Turner EC Kinsella BT XYZ AD - UCD School of Biomolecular and Biomedical Sciences [/code] I tried paring using regular expression but some times the format might …

Member Avatar
Member Avatar
+0 forum 6

I have an API parsing script, which inserts into the db more than 40,000 rows.and maybe due large numbers of queries getting fired continuously, after some specific time the script throws "MySQL server has gone away" error. I know the reason behind this error can be closed connection or any other privileges on the mysql server. How should I deal with this error , so that i can execute the script completely.

Member Avatar
Member Avatar
+0 forum 4

I have a txt file as an input. It is a list which looks like this: [COLOR="Red"]A12345 B153875 C34893 ... ...[/COLOR] and I have a database file which looks like this: [COLOR="Green"]A12345 detail information nvonafwenfovosdncsjdnfoewhuwerhwieufhiudhfisdfnsd sdofnowerugfeuhgfurhgiuwerhfjdshfiasdhifheruwufhi irgfiweurgf A246 detail information isdofnowerugfeuhgfurhgiuwerhfjdshfiadhifheruwufhi wgerjgneiguihuhdnvkjdnvkjbdegiauberiubgieubgridfb ooogrngoawerngiauengugbuivrug B153875 detail information wgerjgneiguihuvkwwjddnvkegtiaugberijubgieubgridfb eragnowergnoweungfiousdhiuhsdnjkfnsk C34893 detail information fnweuraiwerbgivjbdbvurgfuwherugtheurhguhweriguhdg sdgnasoughiueghaiwuh ... ... ...[/COLOR] My goal now is to find all the names listed (A12345_XXX, B153875_XXX, C34893_XXX, ...etc) in the database and create an output file like this (containing the names and the contents): [COLOR="Red"]A12345_XXX nvonafwenfovosdncsjdnfoewhuwerhwieufhiudhfisdfnsd sdofnowerugfeuhgfurhgiuwerhfjdshfiasdhifheruwufhi irgfiweurgf B153875_XXX wgerjgneiguihuvkwwjddnvkegtiaugberijubgieubgridfb eragnowergnoweungfiousdhiuhsdnjkfnsk C34893_XXX fnweuraiwerbgivjbdbvurgfuwherugtheurhguhweriguhdg sdgnasoughiueghaiwuh ... ...[/COLOR] How should …

Member Avatar
Member Avatar
+0 forum 1

I am new-ish to python and need to write a short program which will take a file with many lines of sets of coordinates alongside a defined variable of a series of letters and out a 3 columned file with columns x, y, and letter. the input file has each line in the form of [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (-1,7), (-1, 8), (0, 8)] and there is a defined variable Prot which has the same length as the number of coordinate pairs in each line of the input …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 1.0857 0.1684 1.1760 4 1 844.3 319.7 0.1306 1.3513 0.0967 1.3976 2.2659 4 2 849.2 314.8 0.1350 1.3332 0.1013 1.3773 1.9990 4 3 846.0 318.0 0.1546 1.4675 0.1053 1.5399 2.1172 2 :PAD_999) ... 1 :PAA_888) 3 :PAB_978) ... 1 :PAA_888) 4 :PCA_098) ... 1 :PAA_888) I would like to search …

Member Avatar
Member Avatar
+0 forum 7

The End.