Replacing the specific pattern of text in a huge text string..

B

Brown Smith

At run time I am building the HTML table as follows for literal control.



HTML Table related data ...

<span style='background-color: #FFDD00'>could be any data here LIKE DATA 1
</span>

HTML Table related data ...

<span style='background-color: #FFDD00'>could be any data here NNNN</span>

HTML Table related data ...

<span style='background-color: #FFDD00'>could be any data here..</span>

...

HTML Table related data ...

<span style='background-color: #FFDD00'>could be any data here5555</span>

......



In certain cases as part of business requirement I need to change the text
in between the strings as follows <span style='background-color:
#FFDD00'>Data Not Available</span> for all occurrence of starting string
"<span style='background-color: #FFDD00'>" and ending string "</span>".

How to write an efficient code for this? Instead of string manipulations I
would like to do use regular expressions for this.

Thanks for thinking to help me.

I am using .Net 1.1.

Smith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top