70-483 question 191 discussion

answered

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
Created 5 months, 1 week ago by behanp

behanp

A is not correct, it calls currentMatch.Groups.ToString() which won't contain well formed URL. For "example.com" the result would be just "example." string, in best case, ".com" is not captured in any group (and in reality the collection doesn't have special overload for ToString and result is "System.Text.RegularExpressions.GroupCollection" for each match). Answer C is right.

ghodedhiraj8@gmail.com

Answer C is correct

srimanroop

C is correct answer

leonegaouk@gmail.com

C is the correct Answer

leonegaouk@gmail.com

C is the good answer!!

techman321

c

amom

c