Hi All
Can any one help me to remove the space on beginning of each line by using regex or js.
Assume I have line like this below
Hi
How are you
Fine
But I want it as:
Thanks in advance
Hi Balagi,
My suggestion is that you can try String_Split with NewLine() as Delimiters (the list result should be filter out empty line as mentioned in this post). Then you can use String_Join with NewLine() as Separator and make sure to TrimStart the value of each item in the list.
Regards,
Khuong
Hi @Khuong Truong
As you said I am doing above steps ... but when I am passing the list of text after string split to the string join having error.. string join asking me text record list instead of text list..
If possible can you share me any oml fine for better understanding l.
Thanks
I found the way to convert @Khuong Truong thanks a lot.
Glad to hear that.
Cheers,
Hi,
Why not use the OutSystems build in function TrimStart?
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Text#TrimStart
Daniel
Hi Daniel
Each of the line is from same paragraph. So if we use trim It trims only on beginning of paragraph
Hi All,
for completeness, here's the answer on the question in the original post : how to do it with regex_replace
"^ +"
Dorine