Page 1 of 1

Tell search to ignore elements?

Posted: Wed Mar 10, 2021 10:43 pm
by aewan86
Hello,
I hope you can help- I would like to know if there is a way to tell the search function in Oxygen to ignore elements?
In our project we are working in Chinese, and I would like to find the three-character string 繡毬燈 even if there is an element or line break at any point in the middle of it. With one search, I would like to find:

1)

<lb n="2"/>毬燈

2)
繡毬
<lb n="2"/>燈

3)
繡毬燈

I am using 繡\s*?毬\s*?燈 so that it will search across line breaks/spaces, but I cannot work out how to tell it to ignore the element.

I hope that this is clear- any help would be much appreciated!!

Ewan

Re: Tell search to ignore elements?

Posted: Thu Mar 11, 2021 9:12 am
by Radu
Hi,

The Oxygen Find/Replace in Files has a "Regular expression" checkbox. Maybe you can check it and search for content like:

繡(\s*)<(.*?)/>(\s*)毬(\s*)<(.*?)/>(\s*)燈

Regards,
Radu