Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegEx - can't catch pattern
#2
In QM strings [12], [01] etc are escape sequences. Need an escape sequence for the [ character.

To get correct string can be used the Text dialog.

Another way - raw string:
Code:
Copy      Help
str rx1=
;(\b(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.][0-9]{2}\b;.*\d{6};.*;.*\d{5};.*;\d*:\d{2}|\d{2})\s+
stuff.replacerx(rx1 ...


Messages In This Thread
RegEx - can't catch pattern - by BoolTaxCoder - 02-04-2023, 03:15 PM
RE: RegEx - can't catch pattern - by Gintaras - 02-04-2023, 03:33 PM
RE: RegEx - can't catch pattern - by BoolTaxCoder - 02-05-2023, 10:53 AM
RE: RegEx - can't catch pattern - by Gintaras - 02-05-2023, 12:23 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)