Tell search to ignore elements?

<oXygen/> general issues.
aewan86
Posts: 1
Joined: Wed Mar 10, 2021 10:27 pm

Tell search to ignore elements?

Post by aewan86 » Wed Mar 10, 2021 10:43 pm

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

Radu
Posts: 7434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Tell search to ignore elements?

Post by Radu » Thu Mar 11, 2021 9:12 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply