# How to get specific indx value from ienumerable variable?

**URL:** <https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799>\
**Category:** Studio\
**Tags:** ienumrable, ienumerable-datatable, regex-extractor, question, studio, regex, activities\
**Created:** [July 1, 2026, 12:00pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799 "2026-07-01T12:00:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathkar\_kunal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mathkar_kunal/32/178620_2.png) [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Post date:** [July 1, 2026, 12:00pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/1 "2026-07-01T12:00:45Z")

</div>

Hello,

i have created automation which fetches data from jira tickets but sometimes user puts sentences instead of mail id like below -  
Please provide Jira license and BigPicture access to the following users: , [kunalmathkar@abccompany.com](mailto:kunalmathkar@abccompany.com) [swapnil@abccompany.com](mailto:swapnil@abccompany.com) [akshay@abccompany.com](mailto:akshay@abccompany.com) Access Type: Jira Access - e-collab Team Member BigPicture - Box Editor; requesting iHelpdesk intervention

here i only need to fetch my mail id so i am using regex and possibility that there will be one or more than 1 emails in this sentence.

so i am using below regex to identify one or more emails -

 ![image](https://global.discourse-cdn.com/uipath/original/4X/4/6/b/46bd563fbb7024816367209b9ab3ec8e9bb00224.png)

then checking with condition if no email then no action needed-

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/7/5/075df435f474e3f849758011814e260cc9846312.png)

else if email is there then getting one by one email-

 ![image](https://global.discourse-cdn.com/uipath/original/4X/2/b/5/2b5c36382d60823256ef78883970b445cb840514.png)

Here emailmatches is Enumerable variable  
now my requirement is to get email which is at position 0 [-kunalmathkar@abccompany.com](mailto:-kunalmathkar@abccompany.com)  
now my requirement is to get email which is at position 2- [akshay@abccompany.com](mailto:akshay@abccompany.com)

how can i achieve that?  
if i put currentitem(0) thenn it gives option strict on disallowed strict binding error.

please help me on same

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [July 1, 2026, 12:07pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/2 "2026-07-01T12:07:05Z")

</div>

@Mathkar_kunal

currentitem is the loop on your ienum variable

instead you need to do `emailmatches(0)`

cheere

---

<div class="post-metadata">

**Author:** ![Mathkar\_kunal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mathkar_kunal/32/178620_2.png) [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Post date:** [July 1, 2026, 12:14pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/3 "2026-07-01T12:14:31Z")

</div>

ok thanks ,  
worked , is is possible to get count of how many emails are there in ienumerable variable emailmatcehs?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [July 1, 2026, 12:16pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/4 "2026-07-01T12:16:46Z")

</div>

@Mathkar_kunal

emailmatches.count

cheers

---

<div class="post-metadata">

**Author:** ![Mathkar\_kunal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mathkar_kunal/32/178620_2.png) [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Post date:** [July 1, 2026, 12:17pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/5 "2026-07-01T12:17:26Z")

</div>

showing count is not member of ienumerable

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [July 1, 2026, 12:25pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/6 "2026-07-01T12:25:02Z")

</div>

@Mathkar_kunal

try adding toarray before count

also please specific the variable type used if you have further clarification

cheers

---

<div class="post-metadata">

**Author:** ![Mathkar\_kunal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mathkar_kunal/32/178620_2.png) [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Post date:** [July 1, 2026, 1:03pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/7 "2026-07-01T13:03:25Z")

</div>

for toarray as well same error - ‘toarray’ is not part of ‘IEnumebrable’

system.collection.IEnumerable is the variable type

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [July 1, 2026, 1:19pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/8 "2026-07-01T13:19:53Z")

</div>

@Mathkar_kunal

try this `emailmatches.Cast(Of Object).Count`

cheers

---

<div class="post-metadata">

**Author:** ![Mathkar\_kunal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mathkar_kunal/32/178620_2.png) [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Post date:** [July 1, 2026, 1:32pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/9 "2026-07-01T13:32:07Z")

</div>

thanks worked , able to get count

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [July 4, 2026, 1:32pm UTC](https://forum.uipath.com/t/how-to-get-specific-indx-value-from-ienumerable-variable/5757799/10 "2026-07-04T13:32:45Z")

</div>

Closed on July 4, 2026, 1:32pm UTC

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