CA API Management: How to remove leading and trailing white-space from a string

Document ID : KB000092881
Last Modified Date : 01/05/2018
Show Technical Document Details
Question:
How can leading and trailing white-spaces be removed from a string using the API Gateway?
Answer:
The 'Evaluate Regular Expression' assertion can be used to deal with extra leading and trailing white-space.
A sample policy is attached to demonstrate this.
File Attachments:
leading_trailing_whitespace.xml