Grasshopper

algorithmic modeling for Rhino

I know about "contains" and "x<>" commands, but wonder if there is some command to find specific text in the string (index of the first letter, for example). Also, can I test string for contaiment/search for the text with some unknown part inside?

I mean for example to search for all the "<tr>?</tr>" (rows in the table) in string.

Trying to build a scraper with grasshopper...

Views: 4297

Replies to This Discussion

Hi Philipp,

there is no component for this. You can use the IndexOf function though in the Expression or Evaluate components.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks. 

Where can I find the full list of functions?

Click on the f:N->R button in the upper right corner of the Expression Editor Window.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

cant find mistake...

anyway I find it easier to write a Vb code

http://msdn.microsoft.com/en-us/library/2y7ddk24(VS.80).aspx

thanks for your assistance

The notation in the function lists uses square brackets to denote optional arguments. Leave out the [, 0] bit and it should work.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

oh, thanks a lot)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service