Skip to main content
Question

Using wildcards in Attribute Filter?:

  • Apr 17, 2023 6:17 PM UTC
  • 6 replies
  • 514 views

jhawks
Contributor
Forum|alt.badge.img+7

Workbench is S-57 .000 files to File GDB. I only want to write Soundings that meet that meet the criteria SORIND where it's equal to US,US,graph,Chart * (for any chart number). Is this the correct transformer, syntax etc:

 

image

6 replies

daveatsafe
Safer
Forum|alt.badge.img+24
  • Safer
  • Apr 17, 2023 10:50 PM UTC

Hi @jhawks​,

I think you may have more success with Tester transformer, which lets you use the Contains Regex test. You can then create a Regular Expression that catches all the possibilities you want. The transformer includes a simple Regex sandbox, but you can also find a more comprehensive one at https://regexr.com/.


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • Apr 18, 2023 2:47 PM UTC

So this?image


daveatsafe
Safer
Forum|alt.badge.img+24
  • Safer
  • Apr 18, 2023 4:34 PM UTC

So this?image

I would recommend this (a bit simpler than RegEx):

Screen Shot 2023-04-18 at 9.29.57 AM


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • Apr 18, 2023 5:42 PM UTC

Everything is failing. Here is a sample string from the attribute table of the GDB. US,US,graph,Chart 16646

 

And here are my Tester Parameters:

 

image 

 

 


daveatsafe
Safer
Forum|alt.badge.img+24
  • Safer
  • Apr 18, 2023 6:28 PM UTC

Everything is failing. Here is a sample string from the attribute table of the GDB. US,US,graph,Chart 16646

 

And here are my Tester Parameters:

 

image 

 

 

My apologies, I thought that the commas separated different options instead of being part of the string. Please try the following:

Screen Shot 2023-04-18 at 11.27.36 AM


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • Apr 18, 2023 6:31 PM UTC

That's it! Thank you very much!!