דווקא נוסחה? תלוי במבנה המידע שמגיע.היי, אני מחפשת נוסחא לקבל לינק מתוך טקסט שמגיע במייל,
יש לי בתוך הטקסט הזה כמה לינקים, אני רוצה רק את הלינק הראשון, איך מוצאים אותו?
{{get(split(replace(1.emailBody; "/.*?(https?:\/\/\S+)(?:\]|$|\b)|.*/g"; "$1"); newline); 1)}}
{{replace(replace(replace(split(1.emailBody; newline)0; "/.*?(https?:\/\/\S+).*|.*[\]\,\-]/g"; "$1"); "]"; emptystring); ","; emptystring)}}
{
"subflows": [
{
"flow": [
{
"id": 1,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"scope": "roundtrip",
"variables": [
{
"name": "emailBody",
"value": "\"שלום,תוכל למצוא פרטים נוספים באתר הבא:\n[https://www.example.com]\nוכן, לרכישת המוצר\n החדש שלנו, הנה הלינק:\nhttps://www.example.com/productבברכה,\nצוות המכירות\""
}
]
},
"metadata": {
"designer": {
"x": -918,
"y": -309
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
},
"variables": {
"items": [
null
]
}
}
},
"expect": [
{
"name": "variables",
"spec": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"type": "array",
"label": "Variables"
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "emailBody",
"type": "any",
"label": "emailBody"
}
]
}
},
{
"id": 2,
"module": "regexp:GetElementsFromText",
"version": 1,
"parameters": {
"continueWhenNoRes": false
},
"mapper": {
"text": "{{1.emailBody}}",
"pattern": "##http_urls",
"requireProtocol": true,
"specialCharsPattern": ""
},
"metadata": {
"designer": {
"x": -622,
"y": -304
},
"restore": {
"expect": {
"pattern": {
"label": "HTTP address"
}
}
},
"parameters": [
{
"name": "continueWhenNoRes",
"type": "boolean",
"label": "Continue the execution of the route even if the module finds no matches",
"required": true
}
],
"expect": [
{
"name": "pattern",
"type": "select",
"label": "Pattern",
"required": true,
"validate": {
"enum": [
"##emails",
"##html_tags",
"##http_urls",
"##ftp_urls",
"##telephone_numbers",
"##ipv4",
"##ipv6",
"##emoji",
"##key_value_pairs"
]
}
},
{
"name": "text",
"type": "text",
"label": "Text",
"required": true
},
{
"name": "requireProtocol",
"type": "boolean",
"label": "Full addresses",
"required": true
},
{
"name": "specialCharsPattern",
"type": "text",
"label": "Special characters in the pattern"
}
],
"interface": [
{
"name": "match",
"type": "any",
"label": "Match"
}
]
}
},
{
"id": 3,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "2",
"scope": "roundtrip",
"value": "{{2.match}}"
},
"metadata": {
"designer": {
"x": -314,
"y": -304
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "2",
"label": "2",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}
rhon.co.il
מעכשיו, תהיו הראשונים לקבל את כל העדכונים, החדשות, ההפתעות בלעדיות, והתכנים הכי חמים שלנו בפרוג!
חלה שגיאה בשליחה. נסו שוב!
לוח לימודים
מסלולי לימוד שאפשר להצטרף
אליהם ממש עכשיו:
תהילים פרק כה
אלְדָוִד אֵלֶיךָ יי נַפְשִׁי אֶשָּׂא:באֱלֹהַי בְּךָ בָטַחְתִּי אַל אֵבוֹשָׁה אַל יַעַלְצוּ אֹיְבַי לִי:גגַּם כָּל קוֶֹיךָ לֹא יֵבֹשׁוּ יֵבֹשׁוּ הַבּוֹגְדִים רֵיקָם:דדְּרָכֶיךָ יי הוֹדִיעֵנִי אֹרְחוֹתֶיךָ לַמְּדֵנִי:ההַדְרִיכֵנִי בַאֲמִתֶּךָ וְלַמְּדֵנִי כִּי אַתָּה אֱלֹהֵי יִשְׁעִי אוֹתְךָ קִוִּיתִי כָּל הַיּוֹם:וזְכֹר רַחֲמֶיךָ יי וַחֲסָדֶיךָ כִּי מֵעוֹלָם הֵמָּה:זחַטֹּאות נְעוּרַי וּפְשָׁעַי אַל תִּזְכֹּר כְּחַסְדְּךָ זְכָר לִי אַתָּה לְמַעַן טוּבְךָ יי:חטוֹב וְיָשָׁר יי עַל כֵּן יוֹרֶה חַטָּאִים בַּדָּרֶךְ:טיַדְרֵךְ עֲנָוִים בַּמִּשְׁפָּט וִילַמֵּד עֲנָוִים דַּרְכּוֹ:יכָּל אָרְחוֹת יי חֶסֶד וֶאֱמֶת לְנֹצְרֵי בְרִיתוֹ וְעֵדֹתָיו:יאלְמַעַן שִׁמְךָ יי וְסָלַחְתָּ לַעֲוֹנִי כִּי רַב הוּא:יבמִי זֶה הָאִישׁ יְרֵא יי יוֹרֶנּוּ בְּדֶרֶךְ יִבְחָר:יגנַפְשׁוֹ בְּטוֹב תָּלִין וְזַרְעוֹ יִירַשׁ אָרֶץ:ידסוֹד יי לִירֵאָיו וּבְרִיתוֹ לְהוֹדִיעָם:טועֵינַי תָּמִיד אֶל יי כִּי הוּא יוֹצִיא מֵרֶשֶׁת רַגְלָי:טזפְּנֵה אֵלַי וְחָנֵּנִי כִּי יָחִיד וְעָנִי אָנִי:יזצָרוֹת לְבָבִי הִרְחִיבוּ מִמְּצוּקוֹתַי הוֹצִיאֵנִי:יחרְאֵה עָנְיִי וַעֲמָלִי וְשָׂא לְכָל חַטֹּאותָי:יטרְאֵה אוֹיְבַי כִּי רָבּוּ וְשִׂנְאַת חָמָס שְׂנֵאוּנִי:כשָׁמְרָה נַפְשִׁי וְהַצִּילֵנִי אַל אֵבוֹשׁ כִּי חָסִיתִי בָךְ:כאתֹּם וָיֹשֶׁר יִצְּרוּנִי כִּי קִוִּיתִיךָ:כבפְּדֵה אֱלֹהִים אֶת יִשְׂרָאֵל מִכֹּל צָרוֹתָיו:
הנושאים החמים