Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
12 replies
Answers
2 answers
Subscribers
8 subscribers
Views
14909 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
how would I trim a mix of newline and space characters from the beginning and en
srinivasm
over 9 years ago
how would I trim a mix of newline and space characters from the beginning and end of a text string? For example,
"
this is
a string
" becomes
"this is
a string"
OriginalPostID-174728
OriginalPostID-174728
Discussion posts and replies are publicly visible
Parents
0
Mike Schmitt
over 9 years ago
Yup, you're right about joinarray - so there's actually no need to do the remove() operation in my example above, good catch. I'm not sure what OP's intentions really are with respect to having extra (just single) newlines between text elements or not - that would require some extra tweak that i'm not immediately thinking of.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Schmitt
over 9 years ago
Yup, you're right about joinarray - so there's actually no need to do the remove() operation in my example above, good catch. I'm not sure what OP's intentions really are with respect to having extra (just single) newlines between text elements or not - that would require some extra tweak that i'm not immediately thinking of.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data