Watch panel create new line after commas But Local panel does not

I’m extracting an email body to match using regex. While doing that I saw 2 different behaviours in the Local value variable and the same variable value in the watch panel. The watch panel shows a new line after the comma in text value. What is the reason for this?

Local Value
image

Watch Value
image

You can analyze also within the immediate panel and check if a line break is contained within the text or not

1 Like

This is the immediate value.
image

I just wrote this to a text file. But there is no newline after the comma. But when it is matches with regex, it seems the watch panel value (with a newline) is affected.

we were talking more about, using immediate panel
System.Text.RegularExpressions.Regex.IsMatch(YourTextVar,"\r|\n")

or similar analysis statements

1 Like

e.g. find all Line break positions:
grafik

e.g. Select AsciCodes and check for special chars:
grafik
yellow marks: Line Breaks

1 Like

There was a \r requirement (Not only \n) which I have missed. Thanks for your support.

@Tharusha_Jayadeera
Perfect, so the topic can be closed by marking the solving post
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.