How to check any special characters in Text

I want to check if my specified text does not contains any character which is apart from [ a - z ].

in brief:
I want to check if my text contains any of the following characters:

`~!@#$%^&*()-_+=*][|{};’:"<>,./?
and neither any emojis.

( I neither want to run in a plenty amount of if-else blocks )

https://docs.kodular.io/blocks/lists/#inlist
https://docs.kodular.io/blocks/text/#contains

1 Like

?? Why did you sent me a link to documentation for lists ??

For you to see the blocks that can help you solve your problem. This also includes programming logic.

I know about those blocks. but how do I achieve my solution with those blocks.

Ah yes ! You want the blocks ready! Understand. :+1:

1 Like

:sob: I just want the solution. I can create blocks myself.

Why don’t you do something like this? :point_down:

It doesn’t require so many blocks, just a simple logic.

AIA COPY.aia (2.1 KB)
APK COPY.apk (5.0 MB)

3 Likes

Congratulations on taking the time to help! This is very cool and insentivating.

1 Like

I prefer to use Regex(Regular Expression) for stuff like this:


Just lowercase - pattern = [^a-z]
lowercase Uppercase and space character - pattern = [^a-zA-Z ]

Thanks @Kevinkun!

6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.