---
title: "System::Text::RegularExpressions::GroupCollection::get_Item method"
url: "https://reference.aspose.com/pub/cpp/system.text.regularexpressions/groupcollection/get_item/"
product: "Aspose.PUB for C++"
description: "System::Text::RegularExpressions::GroupCollection::get_Item method. Group accessor in C++."
---

## GroupCollection::get_Item(int) const method


[Group](../../group/) accessor.

```cpp
GroupPtr System::Text::RegularExpressions::GroupCollection::get_Item(int index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int | [Group](../../group/) index. |

### ReturnValue

[Group](../../group/) with specified index.

## See Also

* Typedef [GroupPtr](../../groupptr/)
* Class [GroupCollection](../)
* Namespace [System::Text::RegularExpressions](../../)
* Library [Aspose.PUB for C++](../../../)
## GroupCollection::get_Item(const String\&) const method


[Group](../../group/) accessor.

```cpp
GroupPtr System::Text::RegularExpressions::GroupCollection::get_Item(const String &name) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const String\& | [Group](../../group/) name. |

### ReturnValue

[Group](../../group/) with specified name.

## See Also

* Typedef [GroupPtr](../../groupptr/)
* Class [String](../../../system/string/)
* Class [GroupCollection](../)
* Namespace [System::Text::RegularExpressions](../../)
* Library [Aspose.PUB for C++](../../../)
