一个关于字符串转换的问题
我有这样一个带有html标记的字符串
string str= "<p><font size="3"> Go back nearly 30 000 years and you will find out <u>{1}</u> carving painting and molding their visions of the world and <u>{2}</u> into the rocky surfaces of Africa. As a <u>{3}</u> David Colsens has spent years documenting the Art.<br />
We <u>{4}</u> that the number of sites in Africa is well over a million you know It's probably closer to five million. And if you think that each site could have <u>{5}</u> of images you get some idea of the enormous extent of this art you know it is quite <u>{6}</u>. Equally extraordinary experts say is how closly their thoughts and struggles mirror those <u>{7}</u> today. <br />
They were trying to express their congnitive system. They were trying to look at the <u>{8}</u> reality. They were looking at issues that were depiction of <u>{9}</u> kinds of thoughts and all this together really reprensents the way they looked at their whole <u>{10}</u>.</font></p>"
其中有10个 <u>{*}</u> 这样的字符串
如何把这10个字符串取出来放进一个数组中,
然后分别转换成文本框"<input type='text' id='txt*' name='txt*' />",id设置为txt+大括号中的数字
转换完毕之后,再分别放回到字符串中将之前的<u>{*}</u>替换掉
如果还有其他好的办法来解决,那更好
现在主要问题就是,转换成文本框时,要设置不同的ID和name
50分求解,请各位不吝赐教