Regular expression extension


Hi there.
Here is my first extesion: Regular expression extension
The below photo explains what it can do.
Hope you like it.

and the aix:
cn.kevinkun.RegEx.aix (5.8 KB)

Extracting Text
Textbox Validation of email id and mobile number in thunkable adnroid application

Amazing!!! Good work!!!


Could you explain what the patterns are? I don’t quite understand.


Looks good! I have no idea what it al means, but I see you put a lot of work in it.

You should make a #tutorials on it, so people understand it more :slight_smile:

Great work!


With this extention, it will be easier to deal with text/string.
for example, when you got the response from the web, if you want to get something from the table:

Please refer to below for what the patterns are:


This looks great @kevinkun, I’m looking forward to trying it out.

If you get a chance you should come promote your new extension during #Thunkchat tomorrow:


Well, thats a pretty great idea. I’ll try it as soon as possible.


great to see more and more people creating extensions…
keep up the good work…

btw. my tools extension already offers a Matches method, which uses regular expressions… I guess, I should make some more advertisement… :wink:



Hello, what regular expression can I use to capture the value before a word. For example: the weight is 250 kg (capture only 250). thank you


@Cesar_Gomez what about using some simple blocks to get the value?
use the split at spaces block to split at the space to get a list of 2 items, then use the select list item block and select the first item


Are your incoming data well formed @Cesar_Gomez?
For example will it always have the space like “42 kg” or is it possible for your users to input 42kg?
What about capital letters or extra characters, e.g. 42Kgs etc?


If you only want to get the number, you can use the getmatches block and “\d+” as pattern , you will get a list of all the numbers.


Thanks, this is exactly what I was looking for.

FYI: This extension also works with AppyBuilder.


So glad you like it.
And yes, it should work for all clone of app inventor.