Hi Everyone,
I need help with my situation.
I extracted a string using the get text activity and saved it in a string variable.
Example:
@"
Hi Alvin,
Please see additional information for your reference
IMSO: 7106137458
Invoice number: 9925548608
Regards,
"
as you can see there is a @ symbol prior the double quotation marks.
when i tried to use replace function, it’s not removing the @ symbol.
Hope someone can guide me accordingly
Regards.
Parvathy
(PS Parvathy)
July 8, 2024, 7:40am
2
Hi @alvin.c.apostol26
Check the below thread.
@Yankit_singh
we assume that you have split on space (blanks) otherwise may we ask to share some more details with us.
the meaning of @ is that the string is handled as a verbatim string literal . It means that escaping isn’t applied.
[grafik]
we do see some additional character (see yellow mark and line break)
after split we also do see that the @ is moved to the part with the line breaking part
[grafik]
but the @ would not be part of the string content.However we suggest to find out wha…
you get the @
symbol in Locals Panel while you debug the workflow but while you print it in Message box who won’t get that.
Regards
rlgandu
(Rajyalakshmi Gandu)
July 8, 2024, 7:41am
3
@alvin.c.apostol26
inputString = @"
Hi Alvin,
Please see additional information for your reference
IMSO: 7106137458
Invoice number: 9925548608
Regards,
"
cleanedString = inputString.Trim().TrimStart("@"c)
mkankatala
(Mahesh Kankatala)
July 8, 2024, 7:42am
4
Hi @alvin.c.apostol26
I think you are copying the text from the locals panel. In the locals panel you get the way as in below image
to get the whole string in one line you can use below syntax:
originalText= "This Is the sample
String text For testing"
cleanedText= originalText.ReplaceLineEndings(" ")
Hope it helps!!
Yoichi
(Yoichi)
July 8, 2024, 7:43am
5
Hi,
FYI, the following document will help you. (It’s C# syntax)
Regards,
Oh my! I did not expect that I’m already doing the right thing. Thanks for you quick response
1 Like
system
(system)
Closed
July 11, 2024, 7:47am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.