Jump to content
tturner

Group by name attribute string with wildcard

Recommended Posts

@group_group1 = @name == "piece0-0-4"

works, but not

@group_group1 = @name == "piece0*"

 

what am I missing?

Just trying to group by everything that has piece0 somewhere in the name.

Thanks

Share this post


Link to post
Share on other sites

you can use this string directly in Group parameters set to Primitive: @name=piece0*

or to create new group based on it use Group SOP and type the same in Base Group: @name=piece0*

or if you really need it in Wrangle use match() function:

@group_group1 = match("piece0*", s@name);

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×