Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Python regex matching problem -


i have been parsing graphviz file specific identifer using regex. here typical content file:

node10 [label="second-messenger-mediated signaling\ngo:0019932", fontname=courier, ...];  node11 [label="inositol phosphate-mediated signaling\ngo:0048016", fontname=courier, ...];  node12 [label="activation of phospholipase c activity g-protein coupled receptor protein signaling pathway coupled ip3 second messenger\n\  go:0007200", fontname=courier, ...];  node13 [label="g-protein coupled receptor protein signaling pathway\ngo:0007186", fontname=courier, ...];  node14 [label="activation of phospholipase c activity\ngo:0007202", fontname=courier, ...];  node15 [label="elevation of cytosolic calcium ion concentration involved in g-protein signaling coupled ip3 second messenger\ngo:0051482", fontname=courier, pos="798,1162", width="9.56", height="0.50"]; 

since interested in nodeid, label , go identifier have used following regex match each line:

(node\d*)\s\[label=\"([\w\s-]*).*(go:\d*) 

i know it's neither terribly elegant nor efficient got job done except line node12. have tried using re.dotall , re.multiline no avail.

can me spot missing piece of puzzle make regex work node12 ?

**edit:

here [1] link file contains 1 of lines.

[1] http://amigo.geneontology.org/cgi-bin/amigo/term-details.cgi?session_id=7924amigo1292519756&term=go:0051482&format=dot

if match each line, node 12 splitted in 2 lines...you should read file or iter between 1 node , 1 other...


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -