Regular expression extension


#1

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
#2

Amazing!!! Good work!!!


#3

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


#4

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!


#5

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:


#6

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:


#7

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


#8

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

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

Taifun


#9

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


#10

@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
Taifun


#11

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?


#12

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.


#13

Thanks, this is exactly what I was looking for.

FYI: This extension also works with AppyBuilder.


#14

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