UiPath-ADPv1 Advanced Data Manipulation Practice Question
A developer needs to extract all email addresses from a large text string using a regular expression in UiPath. The pattern must match standard email formats. Which activity or method should they use to return all matches as a collection?
⚠ Common exam trap
Watch out — candidates often confuse IsMatch with Matches; IsMatch only validates presence, while Matches extracts all occurrences.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the 'Matches' activity from the Programming > RegEx category, which returns a collection of Match objects.
The Matches activity is the correct choice because it returns all regex matches as a collection of Match objects. It is efficient and designed for this purpose, unlike IsMatch, Split, or Find, which either do not return matches or return only the first match.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the 'Split' string method with the regex pattern as the delimiter.
Why it's wrong here
Split treats the pattern as a literal delimiter, not a regex, so it would not correctly identify email addresses. It also returns an array of substrings between matches, not the matches themselves. This method is unsuitable for extracting regex matches.
- ✗
Use the 'Find' activity from the Programming > RegEx category to locate the first match, then loop until no more matches are found.
Why it's wrong here
The Find activity returns only the first match, not all matches. Looping manually to find subsequent matches is inefficient and error-prone, as it requires updating the start index. The Matches activity is the correct tool for retrieving all matches in one step.
- ✓
Use the 'Matches' activity from the Programming > RegEx category, which returns a collection of Match objects.
Why this is correct
The Matches activity is specifically designed to find all occurrences of a regex pattern in an input string and returns an IEnumerable<Match>. It is the standard UiPath approach for extracting multiple matches and integrates seamlessly with other activities.
- ✗
Use the 'IsMatch' activity to check if the pattern exists, then use 'Replace' to extract the matches.
Why it's wrong here
IsMatch only returns a boolean indicating whether the pattern is found; it does not provide the actual matches. Replace is used for substitution, not extraction. This combination cannot retrieve all email addresses and is therefore incorrect.
About these practice questions
This UiPath-ADPv1 question is part of Courseiva's 276-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADPv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADPv1 exam.