添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi people, thanks for help me

I’ve this URL https://yoursite.com/?fluent-booking=calendar&host=barberia-valbuena&event=210min&userid=1082199790

I need extract all numbers after &userid= and save it like usuarioid with REGEX

I use this code

([\d]+)

But only show me 1st numbes on the url “210” in ths url for example, but I need the numbers on &userid=

Thanks

Welcome to the Make community!

You can use a Text Parser “Match Pattern” module with this regular expression pattern

[?&]userid=(?<usuarioid>[\d]+)

Regex test: https://regex101.com/r/E43OZh

Using a “Named Capture Group” will directly output your capture as a named variable, so you don’t have to use another “Set variable” module to set the name of the variable.

For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

  • The complete list of metacharacters can be found on the MDN web docs website.
  • For a tutorial on how to create regular expressions, we recommend the RegexOne website.
  • For an easy, quick regex generator, try the Regular Expressions generator.
  • For experimenting with regular expressions, we recommend the regular expressions 101 website. Just make sure to tick the ECMAScript (JavaScript) FLAVOR in the left panel.
  • Hope this helps!

    Links

    Here are some useful links and guides to help you get started and learn more on how to use the Make platform, apps, and app modules —

    General

  • Help Center | Tutorials
  • Make Academy – learn Make and get your certificate
  • Make Blog – get the latest updates
  • Features & Pricing
  • Help Center Basics

  • Mapping – What is mapping? What can I map?
  • Mapping with arrays – How to map items in an array
  • Tokens for parseDate | Tokens for formatDate
  • HTTP modules – Make a request, Get (download) a file
  • Webhooks – Error Handling, Responding to webhooks
  • Articles & Videos

  • Router Magic Formula - YouTube
  • Error Handlers in Make - YouTube playlist
  • Getting started with OpenAI
  • How to use Regex in Make
  •