Evan Cutler
asked on
regex start at first instance
Greetings...
I am trying to extract text using a regex command....but I don't want to start from the beginning.
<sections> <id_root>90b40a38-ea32-9c2 f-f2b8-9ad 32f7b47fe< /id_root> <code_code>34084-4</code_c ode> <code_codeSystem>2.16.840. 1.113883.6 .1</code_c odeSystem> <displayName>ADVERSE REACTIONS SECTION</displayName> <section_title>6 ADVERSE REACTIONS</section_title> <effectiveTime_value>20120 213</effec tiveTime_v alue> <excerpt_text><![CDATA[ <ns1:paragraph>Common adverse reactions in clinical trials (=5% and more common than with placebo) include hypoglycemia, headache, nausea, and dizziness (<ns1:linkHtml href="#S6.1">6.1</ns1:link Html>).</n s1:paragra ph>]]></ex cerpt_text > <subSections>
This is a snippet of a string. I understand it looks like XML, but I have to treat it like a single string.
I need to use REGEX to find the information from the tag <section_title>
Is there a way to regex (start from pos(look for <section_title>)) then go to the end tag?
Thanks much.
I am trying to extract text using a regex command....but I don't want to start from the beginning.
<sections> <id_root>90b40a38-ea32-9c2
This is a snippet of a string. I understand it looks like XML, but I have to treat it like a single string.
I need to use REGEX to find the information from the tag <section_title>
Is there a way to regex (start from pos(look for <section_title>)) then go to the end tag?
Thanks much.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER