Forum Discussion

Vec84's avatar
Vec84
Contributor
8 years ago
Solved

Regular Expressions

Hello, I have a header bar with a caption property that contains words and numbers. I want to extract the a 10 digit number from the caption string. I've read through the documentation however I...
  • HKosova's avatar
    8 years ago
    MYCAPTION.match(/\d{10}/)[0]

    extracts a 10-digit number from the variable MYCAPTION.