Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on September 15, 2019, 04:39:04 AM

Title: Is there a way to define if there is "Invalid characters" inside a string?
Post by: Silicon Power on September 15, 2019, 04:39:04 AM
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.
Title: Re: Is there a way to define if there is "Invalid characters" inside a string?
Post by: Broken Stylus on September 16, 2019, 04:21:55 AM
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:
You can create an action-suite that scans, cuts, removes and rebuilds strings once the editing is complete.
Title: Re: Is there a way to define if there is "Invalid characters" inside a string?
Post by: Silicon Power on September 16, 2019, 10:07:16 AM
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.