Solved

How to filter this words?

  • 23 September 2022
  • 3 replies
  • 2 views

Badge +6

I have one column with this values.

 

I would like to filter only words that contais ABC letters.

 

But can´t be JACABC or RDABC. Sometimes the ABC is stay in second or third word after the comma, like image below:

 

CAP 

Thank´s

icon

Best answer by ebygomm 23 September 2022, 16:00

View original

3 replies

Badge +20

Use StringReplacer to replace space with nothing AttributeSplitter to split by comma (,), then Tester with Begins with ABC.

I think you need a ListExploder someware.

Userlevel 1
Badge +21

A string searcher with the following Regex should pass any features where ABC is the start of a string of characters at any point in the string, i.e. will match ABC123 but not JACABC123

\bABC\w+

\b is the word boundary

ABC are the characters ABC

\w+ is any number of word characters following (letter, number, underscore)

 

If you then need the actual matches themselves they are stored in the allmatches list which you can then explode, e.g. the last line in your example would match and return ABC6003 & ABC4

Badge +6

A string searcher with the following Regex should pass any features where ABC is the start of a string of characters at any point in the string, i.e. will match ABC123 but not JACABC123

\bABC\w+

\b is the word boundary

ABC are the characters ABC

\w+ is any number of word characters following (letter, number, underscore)

 

If you then need the actual matches themselves they are stored in the allmatches list which you can then explode, e.g. the last line in your example would match and return ABC6003 & ABC4

Thank you very much!

Reply