How can I do the following:
In my file I do not know where this string will come but whenever I see the following two lines in the following format I need to extract two things.
a. The complete String minus the special characters(<-->)in line 1
b. The 866 phone no in line2. Also I cannot be sure at which position this no would be.
<!--Today is 3rd May 2002-->
<if cond="session.telephone.dnis=='8663442000'">
-------
---------
-------
------
<!--Today is 4th May 2002-->
<if cond=x='8663442001'">
My final output should look like:
Today is 3rd May 2002
8663442000
Today is 4th May 2002
8663442001
How can I do this....
In my file I do not know where this string will come but whenever I see the following two lines in the following format I need to extract two things.
a. The complete String minus the special characters(<-->)in line 1
b. The 866 phone no in line2. Also I cannot be sure at which position this no would be.
<!--Today is 3rd May 2002-->
<if cond="session.telephone.dnis=='8663442000'">
-------
---------
-------
------
<!--Today is 4th May 2002-->
<if cond=x='8663442001'">
My final output should look like:
Today is 3rd May 2002
8663442000
Today is 4th May 2002
8663442001
How can I do this....