我想Wiki标记转换为HTML标记,即快速Perl的正则表达式不终止
[[Image:wiki.png]]
[[Image:wiki.png|Wikipedia, The Free Encyclopedia.]]
到
<img src="wiki.png" alt=""/>
<img src="wiki.png" alt="Wikipedia, The Free Encyclopedia."/>
一直抛出错误
替换替换没有终止
它工作在this RegExr test和改变分隔符没有固定的问题。任何有识之士将不胜感激。
你能张贴您的整个Perl代码是什么? – 2013-02-23 02:46:27
点是用正则表达式做完全,perl的仅仅是 '而(<>){S /正则表达式/替换;' '打印;}' – kqualters 2013-02-23 02:47:32