Click here to Skip to main content
15,884,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir/Madam,
HTML
<effect><emphasis emph-type="italic"> Smoking:</emphasis> May increase, risk of CV effects, Urge patient to stop smoking, or, discuss, alternative therapy.</effect>

Here in the above coding line for every occurrences of ' comma(,) ' the content should be replaced as below .

What is exact coding line in PERL...
HTML
<effect>

  <agent>Smoking</agent>

    <action> May increase</action>
    <action> risk of CV effects</action>
    <action>Urge patient to stop smoking </action>
    <action> or</action>
    <action> discuss</action>
    <action> alternative therapy</action>
    <action>Monitor patient for withdrawal symptoms.</action>


</effect>
Posted
Updated 30-Oct-11 21:36pm
v2
Comments
RaisKazi 31-Oct-11 3:37am    
Edited: Added "pre" tag for XML.
ckulasekaran 25-Nov-11 6:34am    
"pre" tag is not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900