Symplur Signals empowers you with the ability to do regex pattern matching on several filters including:

  • People->Screen Name 
  • People->Name
  • People->Bio Description
  • People->Bio Location
  • Content->Word

Examples:

The following regex are aimed for the Content->Word filter.

^[c-f]

All tweets that begin with the letter C, D, E or F (Signals regex is case insensitive).

[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}

All tweets with email addresses.

cancer$

All tweets that ends with word “cancer”.

[[:<:]]patient[[:>:]]

All tweets with the word “patient” and that word is not part of another word like “epatient”.

 

The following regex are aimed for the People->Name filter.

md$

All people with names ending with “MD”.

^dr

All people with names starting with “Dr”.

The following regex are aimed for the People->Bio Location.

([:blank:][:punct:]]|^)N[.]Y[.]([[:punct:][:blank:]]|$) 

All people that has entered "N.Y" in their location field.

Notes:

  • Regex is not case sensitive.
  • Symplur Signals uses Henry Spencer’s implementation of regular expressions, which is aimed at conformance with POSIX 1003.2.
  • Try the Regex Tester tool to check your patterns
  • Learn more about regular expressions on Wikipedia

 

Syntax

PatternWhat the pattern matches^ Beginning of string $ End of string . Any single character […] Any character listed between the square brackets [^…] Any character not listed between the square brackets p1|p2|p3 Alternation; matches any of the patterns p1, p2, or p3 * Zero or more instances of preceding element + One or more instances of preceding element {n} n instances of preceding element {m,n} m through n instances of preceding element 

Did this answer your question?