Lauriel Posted February 6, 2020 Share Posted February 6, 2020 (edited) I've looked through the WeiDU docs and haven't found a function to trim off trailing spaces from a string. Is there none? EDIT: I've worked around my current need for it with the STRING_LENGTH function, but still curious in case I need it in the future. Edited February 6, 2020 by Lauriel Quote Link to comment
Gwendolyne Posted February 6, 2020 Share Posted February 6, 2020 Stratagems uses a lot of homemade trim functions. You will find them in its libraries. Quote Link to comment
Lauriel Posted February 7, 2020 Author Share Posted February 7, 2020 Thank you, @Gwendolyne! I'll take a peek Quote Link to comment
lynx Posted February 7, 2020 Share Posted February 7, 2020 You can always use the regex version of string replace with something like ^\s*(.*)\s*$ Quote Link to comment
Lauriel Posted February 7, 2020 Author Share Posted February 7, 2020 I really do need to become more comfortable with regex. I just never think of it in a pinch. Thank you! Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.