Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advice on regexp - Non word characters
#3
Another option - use C# Regex class.

Macro Macro274
Code:
Copy      Help
str s="Liepa ąžoulas beržas●"
s=CsFunc("" s "\W" "-")
out s


#ret
using System.Text.RegularExpressions;

public static string RegexReplace(string s, string rx, string repl)
{
return Regex.Replace(s, rx, repl);
}


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)