guog
论坛元老
 
UID 79936
精华
0
积分 9707
帖子 412
金钱 9707 喜悦币
威望 0
人脉 0
阅读权限 90
注册 2006-9-12 来自 北京
状态 离线
|
一个正则问题
我从数据库导出一些数据如下:
(166, 162, 0, 50, '例子, '{cmspath}/html/huodong/yjszyz', 1, 'index.html', 1, 1, -1, 1, 0, '{style}/index_hdyjzyz.htm', '{style}/list_dj.htm', '{style}/article_dj.htm', '', '{typedir}/{Y}{M}{D}/{aid}.html', '{typedir}/list_{tid}_{page}.html', 'default', '', '', 0, 1, '', '', 0),
(167, 162, 0, 50, '什么, '{cmspath}/html/huodong/fwt', 1, 'index.html', 1, 1, -1, 1, 0, '{style}/index_hdfwt.htm', '{style}/list_dj.htm', '{style}/article_dj.htm', '', '{typedir}/{Y}{M}{D}/{aid}.html', '{typedir}/list_{tid}_{page}.html', 'default', '', '', 0, 1, '', '', 0),
这只是其中2个,一共将近200个,我想把它变成<option value='166'>例子</option><option value='167'>什么</option>也就是value值是括号里的第一项,汉字对应汉字。也许用别的方法可以解决,正在学正则中,弄了好久也不出来,请教高手用正则解答下
|
|