Case sensitive matches block

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

A case sensitive matches block

I’d use it for this type of project:

Everything

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

Checking if sobering matches something

21 Likes

I don’t get what you mean. Could you show some examples?

4 Likes

If you want to match, for example “Hello” but not “hello”

10 Likes

RegEx is usually case sensitive, but it’s not the case for hopscotch

check once if (string) matches (String) should return false, but it returns true

8 Likes

yep

But yeah. This would be nice to have

7 Likes

Don’t we already have check if?

5 Likes

yes, but what if the string to match was this: ^(apple|banana)+$

Returns true if either apple or banana is entered

Also returns true if any word contain caps (which is why this feature would be useful)

6 Likes

I think we can use characters in between? Idk, I don’t use it much often.

4 Likes

This could be useful but I usually have capitals in some places and forget the capitals in other places.

4 Likes

Which is why it would be ideal with a “to lower case” or “to upper case” block – so that you can make it insensitive if needed

11 Likes

This took me a while to understand…lol

3 Likes

Wouldn’t the = block be case sensitive matching and the matches block isn’t case sensitive?

1 Like

https://c.gethopscotch.com/p/11i06pbs0v
Yes it is. You can change the = to something that is case sensitive, and it would return true.

1 Like

We have or…
If = bannana or =apple

2 Likes

How count followers?

3 Likes

Yes, but equals doesn’t support regular expressions or serve the same purpose.

5 Likes

I don’t really understand

1 Like

Can you explain this even more, @Petrichor?

1 Like

String Extensions

(How many data types are available to regular non-JSON hopscotch users? Double and String I think. This needs to change of course)

6 Likes

I agree with that! It would be super helpful to have.

4 Likes