Can someone explain this
Posted: Fri Feb 05, 2010 4:42 pm
Hi,
I discovered something odd here. I note that the following expression will find multiple ending square brackets and I can't seem to stop this with a ? after '\]?'
<!\[CDATA\[(.+)\]>
So for instance this will find:
<![CDATA[Eastborne Marina]>
<![CDATA[Eastborne Marina]]>
<![CDATA[Eastborne Marina]]]]]>
Setting is Posix btw.
Not sure I understand why this is happening as it wouldn't with other chars
Can someone explain why \] appears to be a special case?
I discovered something odd here. I note that the following expression will find multiple ending square brackets and I can't seem to stop this with a ? after '\]?'
<!\[CDATA\[(.+)\]>
So for instance this will find:
<![CDATA[Eastborne Marina]>
<![CDATA[Eastborne Marina]]>
<![CDATA[Eastborne Marina]]]]]>
Setting is Posix btw.
Not sure I understand why this is happening as it wouldn't with other chars
Can someone explain why \] appears to be a special case?