我收到以下错误(当我在我的正则表达式中查看后面并向前看时它们不会出现 - 但是即使我在正则表达式的开头执行 (?m) 它也不会执行多行和全局) :
<!---
Detail: Reason: Sequence (?<...) not recognized.
Message: Malformed regular expression ""(.*)?(https?://)?(?<!@)(www.)?(example.com)(?=/)(.+)?"".
RAW_TRACE coldfusion.runtime.StringFunc$MalformedRegularExpressionException: Malformed regular expression ""(.*)?(https?://)?(?<!@)(www.)?(example.com)(?=/)(.+)?"".
LINE 54
RAW_TRACE at ...\file.cfm:54) --->
<!--- initialize a variable --->
<cfset stuff='<p><img alt="" src="/images/dsfsdfsd/all7color.jpg"</p>
<br><a href="http://example.com/balsdjf.cfm">
<p><img alt="" src="/images/efwrer3fedf/all7color.jpg"</p>
<br><a href="http://example.com/balsdjf.cfm">
'>
<cfscript>
item=REReplace(stuff,
'"(.*)?(https?:\/\/)?(?<!\@)(www\.)?(example.com)(?=\/)\/(.+)?"',
'"/5"',
'ALL');
</cfscript>
<cfoutput>
#item#
</cfoutput>