# Pull values separately returned by regular expression

**URL:** <https://forums.powershell.org/t/pull-values-separately-returned-by-regular-expression/18896>\
**Category:** PowerShell Help\
**Created:** [March 24, 2022, 2:54pm UTC](https://forums.powershell.org/t/pull-values-separately-returned-by-regular-expression/18896 "2022-03-24T14:54:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [March 24, 2022, 4:15pm UTC](https://forums.powershell.org/t/pull-values-separately-returned-by-regular-expression/18896/2 "2022-03-24T16:15:29Z")

</div>

When you post code, sample data, console output or error messages please format it as code using the _preformatted text_ button ( **\</\>** ). Simply place your cursor on an empty line, click the button and paste your code.  
Thanks in advance

> [@Welcome to the new PowerShell Forums](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7/6):
>
> How to format code in [PowerShell.org](http://PowerShell.org) forums. [Codeformatting\_1]

> [@rony1](#):
>
> Now, how can I pull each word seprately from the above value

If I got it right you you use `-split` to split the input string at a certain character. In this case you could split it on the space character.

There might be a better of achieving what you need. You may elaborate a little more detailed what you want to do … the bigger picture …

---

_[View the full topic](https://forums.powershell.org/t/pull-values-separately-returned-by-regular-expression/18896)._
