0

How do I replace the XML expression

'

with

'

?

The problem is that the text is divided in multiple formats for the characters:

\n   -  10 13
& \n apos;
&a \n pos;

I did the following regular expression, and it works in RegexBuddy (JGsoft flavor).

&(\r?\n?a)(\r?\n?p)(\r?\n?o)(\r?\n?s)(\r?\n?;)

I tried to translate that to the UltraEdit format

&^{^p^}^{a^}^{^p^}^{o^}^{^p^}^{s^}^{^p^}^{;^}

but it doesn't work.

The documentation of UltraEdit says:

^{A^}^{B^}  (A|B)   Matches expression A OR B

Reference http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/regular_expressions.html

What am I doing wrong?

1 Answers1

0

It seems that UltraEdit's single- and multi-line handling of regex is spotty/non-standard.

You could try setting the regex mode to Perl or Unix and using your original expression.

Also, if you copy-pasted your UE expression to the question instead of typing it manually and making a typo, then it is incorrect. You are checking for &\na\no\ns\n; instead of &\na\np\no\ns\n; (you forgot the literal p). It should be

&^{^p^}^{a^}^{^p^}^{p^}^{o^}^{^p^}^{s^}^{^p^}^{;^}
Synetech
  • 69,547