Тёмный

Bubble Nocode Regex Tutorial: Extract data from text without learning syntax 

SandraTeaches
Подписаться 4
Просмотров 392
50% 1

This video goes over - How you extract data from text using regex in bubble without learning the syntax. Bubble.io is a nocode solution and this video does not go into how to write regex patterns from scratch. However, patterns can be created in a few seconds using chatgpt.
This will enable you to add this powerful tool to your arsenal.
For Plugin development and Coaching inquiries, you can reach me at bubble@arkitecht.dev
Regex, short for Regular Expression, is a powerful tool used for pattern matching. It's like searching plain text with a specific pattern in mind and outputs a list of texts that match that pattern.
This video covers 2 examples , Firstly using regex to validate emails and secondly using regex to extract data from raw text.
Example 1: Validating a user's email input.
Since we cannot specify all the possible email options like @gmail or @outlook we need a way to define a pattern that checks it. Here is where regex comes into the picture. With the help of regex we can define a single pattern that can be used to validate all possible email
In bubble this expression is available on any text value. It is called "extract text using regex"
It takes a regex pattern and then returns a list of matches. Like how a search works
To generate this regex we can ask chat gpt to create one. With a simple prompt like below
PROMPT for EMAIL validation
"create regex for validating a email it should allow all types .dev .in .co .co.in"
Note: this might take a few iterations to get the correct code, just keep telling chatgpt the scenario in which the regex is not working. If possible outline all the scenarios in the first prompt.
REGEX for EMAIL Validation
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?$
Example 2
Here we are looking at a bit more complex use case where we have a transaction email from a bank and we want to extract the amount, vendor, and timestamp
each will have its own regex and we just display the first item.
Drop a comment if you guys need the link to the application used in the video
Once you understand the basic concept of regex it opens a lot of doors even though you might not know the syntax. You can also find regex expressions made by other users with a simple Google search.
For business inquiries, you can reach me at bubble@arkitecht.dev

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Learn Regular Expressions In 20 Minutes
20:52
Просмотров 1,3 млн
The Best React Code I Wrote (Code Review)
24:50
Просмотров 11 тыс.
LaTeX - Full Tutorial for Beginners
4:28:44
Просмотров 542 тыс.
How-To Add Sendgrid Integration with Bubble.io
8:11
Просмотров 2,9 тыс.
How to use regex in bubble Part 1
15:37
Просмотров 5 тыс.
Split OpenAI Response: Pro Tutorial on Bubble.io
6:34
Просмотров 1,3 тыс.