Grasshopper

algorithmic modeling for Rhino

How to use asterisk wildcard with the Replace String component?

Hi my friends ,

I have one set of strings to opreate on ,some of which contain "(...)". I want to delete all the (...)s .But I donot know how to use asterisk wildcard to achieve this .I need your help ! Thanks in advance .

Views: 1720

Comment

You need to be a member of Grasshopper to add comments!

Comment by Ashwin kumar on August 9, 2019 at 1:27am

I know the importance of this informational web tutorial and learn how do i fix connections to bluetooth audio devices in windows 10 thanks for making for windows 10 users.

Comment by Danny Boyes on March 28, 2012 at 8:37am

I don't think you can.

Comment by Alpha222 on March 28, 2012 at 8:25am

Hi Danny,

It is my fault to post a question as one blog .I thought I had posted it in the discussion scetion .Sorry ! And never again !

Your picture helps !Thanks .
It's possible to move this post to the Discussion section now??
Comment by Danny Boyes on March 28, 2012 at 3:00am

Hi Alpha,

Unless David changes the code for this component it will not accept * as special characters. Add it to a wish list.

In the mean time you can use this method to split a flat list of strings at the brackets and rejoin them in order to remove them. It will only work with none or one set of brackets in a string item.

I cannot post a gh file in a comment for a blog so if you cannot figure it out from the image PM me.

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service