Latifa
(Latifa)
October 1, 2024, 9:21am
1
To determine the number of characters scraped from a website in an “ExtractedText” String variable, excluding leading and trailing white-space characters, what should a developer use?
A. ExtractedText.Length
B. ExtractedText.Trim.Length
C. ExtractedText.Chars
D. ExtractedText.Trim.Chars
Hi guys,
I choose C ,please correct me.
Thanks in advance
@Latifa ,
Correct answer is B. ExtractedText.Trim.Length
Explanation :
Trim removes the leading and trailing spaces from String
Length gives the number of characters
You can try this in Studio.
Thanks,
Ashok
1 Like
Some further reading here
Hi,
if you are a beginner in the world of automation and would like to know how you can manipulate text based on the solutions available in the VB.NET code and using REGEX (regular expressions) then you are in the right place.
In the topic below, you will learn how to easily extract data from any part of the search text using various methods.
The topic includes solution examples with descriptions and graphics to better understand the topic for functions such as:
Split
Substring
Left
Right
R…
1 Like
Latifa
(Latifa)
October 1, 2024, 9:34am
4
@ashokkarale thank you so much
1 Like
Latifa
(Latifa)
October 1, 2024, 9:35am
5
@Steven_McKeering thank you for sharing this.
1 Like
system
(system)
Closed
October 4, 2024, 9:36am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.