Skip to content
Back to formatted view

Raw Message

Message-ID: <1303319829451-3463625.post@n4.nabble.com>
Date: 2011-04-20T17:17:09Z
From: Neeti
Subject: Pattern match

Hi ALL,

I have very simple question regarding pattern matching. Could anyone tell me
how to I can use R to retrieve string pattern from text file.  for example
my file contain following information

SpeciesCommon=(Human);SpeciesScientific=(Homo
sapiens);ReactiveCentres=(N,C,C,C,+
H,O,C,C,C,C,O,H);BondInvolved=(C-H);EzCatDBID=(S00343);BondFormed=(O-H,O-H);Bond+
255B);Cofactors=(Cu(II),CU,501,A,Cu(II),CU,502,A);CatalyticSwissProt=(P25006);Sp+
eciesScientific=(Achromobacter
cycloclastes);SpeciesCommon=(Bacteria);ReactiveCe+

and I want to extract ?SpeciesScientific = (?)? information from this file.
Problem is in 3rd line where SpeciesScientific word is divided with +.  

Could anyone help me please?
Thank you


--
View this message in context: http://r.789695.n4.nabble.com/Pattern-match-tp3463625p3463625.html
Sent from the R help mailing list archive at Nabble.com.