playMaker

Author Topic: Is there a way to define if there is "Invalid characters" inside a string?  (Read 887 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 185
Hi. is there a way to define if there is "Invalid characters" inside a string? I don't want to allow characters like / | > < ” ؟ * : \ inside a string.

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
You have to parse (scan) the whole string. You may use the default actions, it's definitely doable that way with String Replace after parsing the string you wish to edit. But there's more stuff on the Ecosystem.
There are some extra actions like:
  • String Replace Each Char
  • String Remove Chars
  • String Contains Fast
You can create an action-suite that scans, cuts, removes and rebuilds strings once the editing is complete.

Silicon Power

  • Full Member
  • ***
  • Posts: 185
You have to parse (scan) the whole string. You may use the default actions, it's definitely doable that way with String Replace after parsing the string you wish to edit. But there's more stuff on the Ecosystem.
There are some extra actions like:
  • String Replace Each Char
  • String Remove Chars
  • String Contains Fast
You can create an action-suite that scans, cuts, removes and rebuilds strings once the editing is complete.

Thank you. I'll test it soon.