Hi guys,
I am bit new to c#, i am looking for a string matching pattern to do the following,
I have a string like this
The book will be showcased at a reception in Number 11 Downing Street and will be attended by key healthcare
i need to create a span tag to highlight some text fragments using startIndex and length,
for an example,
- startIndex = 3, Length = 10
- startIndex = 8, Length = 8
i need to create a span tag dynamically and also create a separate span tag for intersections
in this case,
The < span id= 'span1' color='blue'> book < /span> < span id='intersectionSpan' color= pink > will </ span> < span id '= span2' color = 'yellow' > be showcased </ span>
anyone has come across any kinds of design pattern or smiler problems
please advice