Author Topic: [6230] Regex doesn't recognize "\s"  (Read 1384 times)

theta_wave

  • Sr. Member
  • ****
  • Posts: 680
Hi Steven,

The following simple regex doesn't work (validate brings up FAIL @ "="T",True,False)"):

Code
$If($IsMatch(<Title>,\sNo\.\d\s)="T",True,False)

Replacing \s with spaces doesn't work nor does the regex pattern of No\.\d{1}

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34362
does this work?
$If($IsMatch(<Title>,"\sNo\.\d\s")="T",True,False)

theta_wave

  • Sr. Member
  • ****
  • Posts: 680
does this work?
$If($IsMatch(<Title>,"\sNo\.\d\s")="T",True,False)
You're right.  I didn't enclose my regex with quotation marks.  Thanks.