Hi All,
I have following text Template that needs to be parsed using Regular
Expression
-- Test Template
This is a Test Template for <#OrderNumber/>
Sender Message is <#SENDERMESSAGE/>
<#ORDERS>
This is Order number <#OrderNumber/>
Order Lines are
<#ORDERLINES>
Product Desc: <#PRODUCTDESCRIPTION/>
Product Information: <#ProductInformation/>
Supplier Name: <#SUPPLIERNAME/>
Supplier Contact: <#SUPPLIERCONTACTNO/>
</#ORDERLINES>
</#ORDERS>
Your voucher Reference number is <#VREFNO/>
-- End of Test Template
I need to extract string in between <#ORDERS>(anything)</#ORDERS>. The
reg exp i am using is (<#ORDERS>(\s|.)*?</#ORDERS>) and it works fine.
However if the test template gets change a bit like in following way,
the regular expression gets hanged.
--
<#ORDERS>
This is Order number <#OrderNumber/>
Order Lines are
<#ORDERLINES>
Product Desc: <#PRODUCTDESCRIPTION/>
Product Information: <#ProductInformation/>
Supplier Name: <#SUPPLIERNAME/>
Supplier Contact: <#SUPPLIERCONTACTNO/>
</#ORDERLINES>
</#ORDERS
--
Can some one please help and let me know any suggestion to do the same
thing. I am a bit new with Regular expression
Thanks,
Asif