Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advice on regexp - Non word characters
#2
QM regular expressions cannot recognize Unicode word/nonword characters.
If all Unicode characters in your text are word characters, use this regular expression:

Macro Macro272
Code:
Copy      Help
str s="Liepa ąžoulas beržas"
s.replacerx("[^\w\x80-\xff]" "-")
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)