You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Replacing values in a string

Received Response
edited May 8, 2019 11:46AM in Process Automation 1 comment


How can I replace values within a string


I have a process that utilises a webform, on that form a user will cut and paste a list of UK postcodes (aka US ZIP Code, but different format) into a control (text area) for example

S63 0EF
CF32 7HY
SE28 8JY
SO18 1BE
G33 5BP


I want to be able to take the postcode data the users entered and create a comma separated string.  So in this example I want to replace the newline character with ","  and I also want to replace the space within each postcode with a "-" to give


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!