<a id="parsing-text-in-podio-with-globiflow"></a>

# Parsing text in Podio with Workflow Automation

A word of warning - the following is quite technically complex and for advanced users with programming knowledge.

## Custom Functions

Workflow Automation exposes a few powerful custom functions that allow flexible parsing of text data.

```
strip_tags_gf( $text )
=> returns text
```

This function works almost identically to PHP's built-in [strip_tags](https://www.php.net/strip_tags), but also also retains carriage returns between paragraphs and list items, and also prefixes list items with " - ". This makes the return string more usable.

```
preg_match_gf( $regex_pattern, $text, $index )
=> returns match[$index]
```

This function works the same way as PHP's [preg_match](https://www.php.net/manual/en/function.preg-match.php), but also allows you to specify the array index to return, so that you have a string result.

## An Example

Let's say for example, you get new items created in a *VoiceMail* app via email, that contain details of messages received, like:

![Parsing Text](https://www.progress.com/podio/documentation/assets/3b8b957312a1f5625b796567fe278d2d/parsing-text1.png)

How do you get the From Phone Number out?

It would look something like this:

![Parsing Text](https://www.progress.com/podio/documentation/assets/c4f7d49cb987eeb22e1dcc42bfe8b467/parsing-text1a.png)

With similar regular expressions, you could get the caller **ID value**, the message length, or any piece of text from a larger text block.

## Resources

For more information on Regular Expressions, see this [Regex Tutorial](https://www.regular-expressions.info/tutorial.html).

A great interactive tool to help build expressions is this [Regex Tester](https://regex101.com/).

## Caveats

***Note**: Regular expressions can be very complex and time-intensive to create. For this reason, we do not include regular expression help as part of free support*.

However, seeing how powerful they can be, we decided to include this functionality in Workflow Automation because it can, and does, benefit many of our users.
