Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

trim

trim

The trim analytic removes all spaces from the text except for single spaces between words.

Syntax

trim(text1,[text2],...)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
text1
Required
The text from which you want spaces removed.
text2
Optional
The other list of text from which you want spaces removed.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Event property
Text
Watchlist values
Text
Example
when 1 stock s with trim(s.period) as result =”Second Quarter” then response with body=”${result}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
s.period=" Second Quarter "
Removes all spaces from text except for single spaces between words.
Second Quarter

0 COMMENTS

We’d like to hear from you!