Idea: Filter Text

A feature I’d like to see in Hopscotch is:

Filtering Text

I’d use it for this type of project:

Filtering Numbers/Text

Here are some examples of Hopscotch code that could be improved if we had this:

SEPERATING NUMBERS FROM TEXT/ TEXT FROM NUMBERS.
I cant think of a way to do it without using beta editor

Here is an example design I’ve made:

blank.

I’ve seen something similar in another programming languages, it looks like this:

I forgot

6 Likes

Stolen first post

2 Likes

Uh I don’t understand…
Can you tell me what you think the block will look like?
(Like “[set width (102039)]”)

1 Like

Basically a “match expression” text operator.

(Like length of string but instead is labeled “match”)

2 Likes

filtering text is basically if “gaucho” is in var(randomWords) set text to are you a gaucho?

3 Likes

Isn’t that what match does?

3 Likes

yes

2 Likes

Yeah but we want “match” not “if matches”

2 Likes

So basically 1 or 0?

1 Like

No, this would actually get the text match.

The block I made would set variable to 123

1 Like

Oh I see
Just gets the part that matches

2 Likes

interesting

1 Like

Siri Shortcuts?

1 Like

Yeah
[Match (Text) with (text)]

1 Like

JavaScript
oops didn’t mean to reply to you

3 Likes

Oops I meant
[match (text) with (text) in (input)]

3 Likes

i don’t understand

1 Like

I mean removing some text
(e.g. you wanna output “hello” only in “hello world”)

1 Like

Ok ok
So you joined -1?

2 Likes

ohhhhh
i get it
cool idea!