Home » Microsoft » 70-483 v.2 » Which code should you insert at line 07?
You write the following method (line numbers are included for reference only):
You need to ensure that the method extracts a list of URLs that match the following pattern:
@http://(www.)?([^.]+).com;
Which code should you insert at line 07?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: C
Explanation/Reference:
* MatchCollection
Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string.
The collection is immutable (read-only) and has no public constructor. The Regex.Matches method returns a MatchCollection object.
* List<T>.Add Method
Adds an object to the end of the List<T>.
Incorrect: