Download page Searching in the string with a regular expression.
Searching in the string with a regular expression
Use case
You need to search for a specific pattern in the string and display the matching parts in a new column.
For example, among the "LettersNumbers" (A10, B12, UT7) components you need to find all the "Numbers/Numbers" (08/15, 10/11) components and show them in a separate column.
Solution
Switch the page to the edit mode.
Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.
Select the macro and click Edit.
In the Presets tab select Custom transformation and click Next.
Enter the following SQL query:
SELECT *,
MATCH_REGEXP(T1.'Component', "\d+/\d+", "g")
AS 'Component with /'
FROM T*
SQL
Here the "\d+" regular expression stands for any number of digits. To learn more about regular expressions, you may check this guide.
Savethe macro and the page.
Cookie Notice
This website uses cookies for analytics, personalization and advertising. By continuing to browse, you agree to our use of cookies. Learn more