Hi
I have found a problem where I can search for, but not use as a copy filter:
files: *.xml,
in the period: 1/10/2016-31/12-2016,
containing: <tumor>\n <rbt_indikator>Ja
I also seem unable to extend the filter with an OR:
<tumor>\n <rbt_indikator>Ja|<blodsygdom>\n <rbt_indikator>Ja
Regards
Filter issue, difference between search and copy?
Moderators: Hacker, petermad, Stefan2, white
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Just to be clear:
A literary '\n' stands for a new line in C-like programming languages.
here the 'n' stands for 'number' like '1' or '2' to represents the n'th (...)-Subexpression
See example on next line in help.
A literary '\n' stands for a new line in C-like programming languages.
The help doesn't means the letter 'n' literary,sqa_wizard wrote:TC Help wrote:\n Finds subexpression n another time in the search result
here the 'n' stands for 'number' like '1' or '2' to represents the n'th (...)-Subexpression
See example on next line in help.
Backreferences
\n Finds subexpression n another time in the search result.
Example: (.+)\1+ finds e.g. abab (where the first ab is found by .+ and the second by \1+ )
Meanwhile it really looks like a bug: TC filters files with search preset that finds some text in files but not when this text contains \n character.
You just can't do that using find text field. Normal text search only supports single search pattern. Regex text search does support multiple search patterns separated with pipe (|), but regex search works only within separate lines, you can't search for multiline pattern. However you can find multiple patterns (combined with AND or OR operators) using plugins tab and some WDX plugin that returns full file text.rex1701 wrote:I also seem unable to extend the filter with an OR