I need to edit a page that has a great many spurious embedded hyperlinks on class names. For example, com.mycompany.xx.MyClass has a hyperlink on the com.mycompany.xx package name.
I went into the source editor by clicking the <> button at the right end of the editor toolbar. (I'm not sure whether this is a standard feature of Confluence or a plugin that my company has purchased. :-( )
In any case, I've selected the Regex checkbox and entered the following in the Find field:
<a href=.+?>(.+?)</a>
This pattern finds and selects the full anchor string, exactly as I need, such as this one:
<a href="com.mycompany.xx">com.mycompany.xx</a>
However, putting the following in the Replace field:
\1
and then clicking Replace just replaces the selected text with:
\1
instead of:
com.mycompany.xx
Can someone help me with what the correct syntax is for using the subexpression in the Replace text?