1

I'm trying to apply a very simple regex to a Rich Text Box in Umbraco 7.

The regex I'm trying to apply is [^£\$].

I've tried some simple ones, [a-zA-Z], etc, but nothing seems to take effect.

Switching the property to as textString, and the regexes work immediately.

What am I doing wrong?

Thanks, john

John Mc
  • 444
  • 2
  • 15

1 Answers1

2

The point is that the rich text editor in Umbraco has various settings and it can show different types of content.

Regular expressions are used to find matches inside text data only.

Thus, setting the content type to textString for regex-based search to work is logical.

The fact that the regex box is not grayed out when a non-supporting mode is selected is most probably a minor bug.

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563