{"id":390,"date":"2017-11-21T19:54:07","date_gmt":"2017-11-21T19:54:07","guid":{"rendered":"http:\/\/gearmage.com\/blog\/?p=390"},"modified":"2026-02-05T22:52:09","modified_gmt":"2026-02-05T22:52:09","slug":"extract-data-emails-attachments","status":"publish","type":"post","link":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","title":{"rendered":"Extract data from emails and attachments &#8211; an in-depth guide"},"content":{"rendered":"<h2>Extract data: A comprehensive PRO guide<\/h2>\n<p>PRO Server offers \u00a0flexible extraction constructs to extract data or fields from both emails AND\/OR attachments.<\/p>\n<p>This post will explore how you can setup the PRO Server to extract data using the extraction wizard (Option-1) or using regular expressions (Option-2).<\/p>\n<h2>Use the Global Filters tab to extract data<\/h2>\n<p>First off, to extract data you MUST use the <strong>Global Filters<\/strong> tab. This allows you to create one or more rule filters that will then be used for extraction.<\/p>\n<p>Each rule is run for EVERY attachment (any type, converted to text before extraction occurs) or email body (saved as .eml or .txt\/.html).<\/p>\n<p>In a rule, you can specify what to look for in the email (like matching From, To, Subject etc.) and \u00a0then parameters to extract one or more data into fields as will be explained below.<\/p>\n<hr \/>\n<h2><span style=\"text-decoration: underline;\">FIELDS<\/span>: Extract data into fields {..}<\/h2>\n<p>Fields are what you as a user can create in the Rule that then can be used in various actions.<\/p>\n<p>Extracting data in the PRO Server is performed by first specifying a field name and then providing various parameters in the Rule configuration such as:<\/p>\n<ol>\n<li>WHAT to extract by specifying what comes before or after the piece of data you want to extract<\/li>\n<li>HOW to extract it by specifying whether to remove whitespaces or convert it into a number etc. as will be shown<\/li>\n<li>Specifying a unique FIELD NAME (between {}) \u00a0where the extracted data will be &#8220;stored&#8221;. For example: <strong>{ORDER_ID}<\/strong>.<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>FIRST: Specify the matching filters<\/strong><\/h2>\n<p>The very <strong>FIRST STEP<\/strong> in extraction is to create or edit a rule in the <strong>Global Filters<\/strong> tab and then specify the <strong>Filters <\/strong>that helps narrow down the type of email we want to extract data from.<\/p>\n<p>In there you MUST specify the specific email filters to select the kinds of emails you are looking to extract data out of.<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/exrtact-data-pick-the-email\/\" rel=\"attachment wp-att-408\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-408\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email-1024x194.png?resize=474%2C90&#038;ssl=1\" alt=\"exrtact data - pick the email\" width=\"474\" height=\"90\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?resize=1024%2C194&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?resize=300%2C57&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?resize=768%2C145&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?w=1478&amp;ssl=1 1478w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<p>As shown above we&#8217;ve used a matching Subject and a From that matches a certain address.<\/p>\n<h2>SECOND: Two ways to extract data in a rule&#8230;<\/h2>\n<p>There are two ways to extract data inside of a rule as will be explained below.<\/p>\n<p>When you create or edit a rule in the <strong>Global Filters<\/strong> tab, you can start out by specifying Filters and then have two ways to perform extraction as shown in the below screenshot.<\/p>\n<ol>\n<li><strong>Filter extraction with wizard<\/strong> (recommended)<\/li>\n<li><strong>Filter extraction with regular expression<\/strong><\/li>\n<\/ol>\n<p>We will explore each option in this post below.<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-two-ways\/\" rel=\"attachment wp-att-392\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-392\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-two-ways.png?resize=474%2C427&#038;ssl=1\" alt=\"extract data - two ways\" width=\"474\" height=\"427\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-two-ways.png?resize=1024%2C923&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-two-ways.png?resize=300%2C270&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-two-ways.png?resize=768%2C692&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-two-ways.png?w=1484&amp;ssl=1 1484w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<hr \/>\n<h2><span style=\"text-decoration: underline;\">Option-1: Filter extraction with wizard<\/span><\/h2>\n<p>Create a new extraction by selecting<br \/>\n<strong>Add -&gt; Extractions -&gt; Field extraction<\/strong> <strong>with wizard<\/strong><br \/>\nas was shown earlier.<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-new-extraction\/\" rel=\"attachment wp-att-394\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-394\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-new-extraction-1024x357.png?resize=474%2C165&#038;ssl=1\" alt=\"\" width=\"474\" height=\"165\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-new-extraction.png?resize=1024%2C357&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-new-extraction.png?resize=300%2C105&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-new-extraction.png?resize=768%2C268&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-new-extraction.png?w=1480&amp;ssl=1 1480w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<p>You now have the option to name your field. A random name has been automatically selected, feel free to change this to something more meaningful.<\/p>\n<p>For the purposes of this tutorial we will use {ORDER_ID}. The field name <span style=\"text-decoration: underline;\">MUST be within braces {}<\/span>. Then select the <strong>Source<\/strong> from the dropdown option as to where you want to extract data from.<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-select-source\/\" rel=\"attachment wp-att-395\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-395\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-select-source.png?resize=474%2C211&#038;ssl=1\" alt=\"extract data - select source\" width=\"474\" height=\"211\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-select-source.png?resize=1024%2C455&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-select-source.png?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-select-source.png?resize=768%2C341&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-select-source.png?w=1472&amp;ssl=1 1472w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<p><strong>NOTE:<\/strong> This dropdown does not include the attachment itself, we will cover this later below.<\/p>\n<p>We will choose the <strong>EMAIL_SUBJECT<\/strong> as the source for this tutorial.<\/p>\n<p>Click on the <strong>Extraction wizard<\/strong> button and follow these steps:<\/p>\n<ol>\n<li><strong>Copy Sample Text:<\/strong> Once the dialog opens, lets start off by copying some text that may be a sample &#8220;Subject&#8221; of the email into the <strong>Test data<\/strong> area.\u00a0<a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-sample-subject-2\/\" rel=\"attachment wp-att-397\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-397\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-sample-subject-1.png?resize=474%2C294&#038;ssl=1\" alt=\"extract data - sample subject\" width=\"474\" height=\"294\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-sample-subject-1.png?resize=1024%2C635&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-sample-subject-1.png?resize=300%2C186&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-sample-subject-1.png?resize=768%2C476&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-sample-subject-1.png?w=1632&amp;ssl=1 1632w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/li>\n<li><strong>Search tab: <\/strong>Specify here the text that may PRECEDE the actual data we want to extract. In our test data, we have <strong>Invoice # <\/strong>as a good prefix. So let&#8217;s use that.\u00a0<a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-specify-search-text\/\" rel=\"attachment wp-att-398\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-398\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-specify-Search-text.png?resize=474%2C84&#038;ssl=1\" alt=\"extract data - specify Search text\" width=\"474\" height=\"84\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-specify-Search-text.png?resize=1024%2C181&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-specify-Search-text.png?resize=300%2C53&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-specify-Search-text.png?resize=768%2C136&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-specify-Search-text.png?w=1614&amp;ssl=1 1614w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><br \/>\n<blockquote>\n<p><span style=\"color: #000000;\"><em><strong>PRO TIP<br \/>\n<\/strong><\/em><\/span><br \/>\n<span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"https:\/\/gearmage.zohodesk.com\/portal\/en\/kb\/articles\/latest-pro-client-and-pro-server-builds-how-to-get-them\">Latest builds<\/a> now support <a style=\"color: #000000;\" href=\"http:\/\/regexstorm.net\/reference\">.NET regular expressions<\/a>\u00a0in the following fields:<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Search raw text field<\/span><br \/>\n<span style=\"color: #000000;\">&#8211; Followed by (optional)<\/span><\/p>\n<p><span style=\"color: #000000;\">This allows you to specify more than one search term, for example, specifying <strong>(Invoices|Receipts)\u00a0<\/strong>in this text including parentheses will search for Invoices or Receipts as the text to search until before extracting data after it.<\/span><\/p><\/blockquote>\n<\/li>\n<li><strong>Extract tab: <\/strong>Since what follows after the invoice is a &#8216;-&#8216; hyphen, we will choose the <strong>Until any of these<\/strong> option and then specify the\u00a0hyphen as the character to stop extracting data as shown below. <strong><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-extract-tab\/\" rel=\"attachment wp-att-399\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-399\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-extract-tab.png?resize=474%2C292&#038;ssl=1\" alt=\"extract data - extract tab\" width=\"474\" height=\"292\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-extract-tab.png?resize=1024%2C630&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-extract-tab.png?resize=300%2C185&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-extract-tab.png?resize=768%2C473&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-extract-tab.png?w=1634&amp;ssl=1 1634w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/strong>You can also see that the test data now highlights the invoice number.<\/li>\n<li><strong>Transform tab: <\/strong>From our previous step you can see that we have an extra space towards the end of the invoice number. This tab lets you transform the extracted data in many ways. Since we just want to remove the space, we will check the <strong>Remove leading and trailing spaces<\/strong> option. Feel free to experiment with the various options present here. <strong><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-transform-tab\/\" rel=\"attachment wp-att-400\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-400\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-transform-tab.png?resize=474%2C292&#038;ssl=1\" alt=\"extract data - transform tab\" width=\"474\" height=\"292\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-transform-tab.png?resize=1024%2C630&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-transform-tab.png?resize=300%2C185&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-transform-tab.png?resize=768%2C473&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-transform-tab.png?w=1634&amp;ssl=1 1634w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/strong>You can also convert the extracted data from a String to an Integer or Decimal in the <strong>Convert to type <\/strong>dropdown.<\/li>\n<li><strong>Validate tab:\u00a0<\/strong>In here you can specify any validations. Since we absolutely want an invoice number to be present before we take further actions like saving the email or attachments in the rule, we will choose the <strong>No blank or empty extractions<\/strong> option.<a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-validate-data\/\" rel=\"attachment wp-att-401\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-401\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-validate-data.png?resize=474%2C288&#038;ssl=1\" alt=\"extract data - validate data\" width=\"474\" height=\"288\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-validate-data.png?resize=1024%2C623&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-validate-data.png?resize=300%2C183&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-validate-data.png?resize=768%2C468&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-validate-data.png?w=1626&amp;ssl=1 1626w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/li>\n<li><strong>On Failure tab:\u00a0<\/strong>When an extraction fails validation (based on what we specified in the validation tab), we want to skip this rule and proceed further.<a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-on-failure\/\" rel=\"attachment wp-att-402\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-402\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-on-failure.png?resize=474%2C291&#038;ssl=1\" alt=\"extract data - on failure\" width=\"474\" height=\"291\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-on-failure.png?resize=1024%2C629&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-on-failure.png?resize=300%2C184&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-on-failure.png?resize=768%2C472&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-on-failure.png?w=1630&amp;ssl=1 1630w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/li>\n<li><strong>Click Save<\/strong><\/li>\n<\/ol>\n<p>Now we have completely set the parameters on how we want to extract the data.<\/p>\n<p>Feel free to change the <strong>Test data\u00a0<\/strong>and click the <strong>Run Test button<\/strong> to run tests. The Status below will show what was extracted. As shown above it says <strong>OK: 7265537\u00a0<\/strong>and that means <strong>7265537 <\/strong>was what was extracted based on the Test data which is what we want.<\/p>\n<h3>Extract data from email attachments<\/h3>\n<p>Extracting data from email attachments is very similar to what has been described above with Option-1, except instead of choosing<br \/>\n<strong>Add -&gt; Extractions -&gt; Field extraction<\/strong> <strong>with wizard<\/strong><\/p>\n<p>you will be creating the field extraction in the <strong>Actions<\/strong> section as shown below:<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-from-attachments\/\" rel=\"attachment wp-att-405\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-405\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-from-attachments.png?resize=474%2C666&#038;ssl=1\" alt=\"extract data - from attachments\" width=\"474\" height=\"666\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-from-attachments.png?resize=729%2C1024&amp;ssl=1 729w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-from-attachments.png?resize=214%2C300&amp;ssl=1 214w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-from-attachments.png?resize=768%2C1079&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-from-attachments.png?w=1478&amp;ssl=1 1478w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<p>Make sure that the ORDER at which the extraction occurs is correct. Any actions that are run BELOW the extraction will have the extracted field.<\/p>\n<p>If you have any questions about this, please contact <a href=\"mailto:support@gearmage.com\">support@gearmage.com <\/a>for help.<\/p>\n<hr \/>\n<h2><span style=\"text-decoration: underline;\">Option-2: Filter extraction with regular expressions<\/span><\/h2>\n<p>This is for advanced uses only. You MUST be well-versed with using regular expressions and also using regular expressions based replacement.<\/p>\n<p><strong> READ THIS FIRST:\u00a0<\/strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/standard\/base-types\/regular-expression-language-quick-reference?redirectedfrom=MSDN\">Regular Expressions<\/a>\u00a0format that is followed in this post.<\/p>\n<h2>Extract the Invoice # from the SUBJECT<\/h2>\n<p>Since we want to extract the Invoice # for further invoice processing.<\/p>\n<p>With this post we will explore <strong>extracting data for invoices<\/strong> from the email using <strong>regular expressions<\/strong>. In a future post, we can walk you through how to use the Extraction Wizard if needed.<\/p>\n<p>Since the Invoice # is in the Subject of the email, we will add a new extraction to the new rule we created as follows. Click on the <strong>Add dropdown<\/strong> -&gt; <strong>Extractions<\/strong> -&gt; <strong>Field extraction with regular expressions\u00a0<\/strong>option as shown below.<\/p>\n<p><a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-using-regex\/\" rel=\"attachment wp-att-407\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-407\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-using-regex.png?resize=474%2C104&#038;ssl=1\" alt=\"extract data - using regex\" width=\"474\" height=\"104\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-using-regex.png?resize=1024%2C224&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-using-regex.png?resize=300%2C66&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-using-regex.png?resize=768%2C168&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-using-regex.png?w=1488&amp;ssl=1 1488w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/p>\n<p>Rename the Extraction field to something meaningful like \u201c{INVOICE_NUMBER}\u201d as shown below and include a regular expression to extract text.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-59\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/04\/Extract-Invoice.png?resize=648%2C260&#038;ssl=1\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" srcset=\"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/04\/Extract-Invoice.png 648w, https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2016\/04\/Extract-Invoice-300x120.png 300w\" alt=\"Extract Invoice\" width=\"648\" height=\"260\" \/><\/p>\n<ul>\n<li><strong>In the Pattern field enter\u00a0^.*Invoice #(\\d+)([a-z| ]*)$.<\/strong> If you notice symbols like ^, $ and \\d and * are indicators to what to look for in the Subject. ^ implies start of the line and $ is the end of the line. \u00a0The .*\u00a0means include any number of characters followed by Invoice #. Since what follows Invoice # is a number we include (\\d+). This becomes our first extraction field (which we will use as\u00a0the Replace text). Following that could include any number of characters or spaces ([a-z]| ]*)\u00a0followed by the end of the line $.<\/li>\n<li><strong>In the\u00a0Replace textbox, specify $1<\/strong> which is the first match between the parentheses () we have specified in the Pattern, in this case (\\d+).<\/li>\n<\/ul>\n<p>Feel free to contact support if you have a different pattern to look for and we can help you craft this as needed. Refer to the\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/standard\/base-types\/regular-expression-language-quick-reference?redirectedfrom=MSDN\">Microsoft\u2019s regular expression\u00a0reference\u00a0here<\/a>\u00a0for more.<\/p>\n<p>Then you can Test the result out as shown above, if you notice TEST SUCCESS\u00a0includes our extracted Invoice #.\u00a0This will save with the invoice number for invoice processing into the field name.<\/p>\n<hr \/>\n<h2><span style=\"text-decoration: underline;\">Finally: Uses of the extracted data<\/span><\/h2>\n<p>Now you can use the <strong>{ORDER_ID} or {INVOICE_NUMBER}<\/strong>\u00a0fields we extracted in many places inside THIS rule such as:<\/p>\n<ul>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Save filename format <\/strong><\/span>as a Folder or part of the filename. If you want it as a folder just separate with a &#8216;\\&#8217; character as shown below. Click the little (i) button next to the Save filename format for a complete list of fields that can be inserted here.<a href=\"https:\/\/gearmage.com\/blog\/2017\/11\/21\/extract-data-emails-attachments\/extract-data-use-in-save-filename-format\/\" rel=\"attachment wp-att-403\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-403\" src=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-use-in-save-filename-format.png?resize=474%2C63&#038;ssl=1\" alt=\"extract data - use in save filename format\" width=\"474\" height=\"63\" srcset=\"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-use-in-save-filename-format.png?resize=1024%2C136&amp;ssl=1 1024w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-use-in-save-filename-format.png?resize=300%2C40&amp;ssl=1 300w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-use-in-save-filename-format.png?resize=768%2C102&amp;ssl=1 768w, https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/extract-data-use-in-save-filename-format.png?w=1486&amp;ssl=1 1486w\" sizes=\"auto, (max-width: 474px) 85vw, 474px\" \/><\/a><\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Send email <\/strong><\/span>action &#8212; in the Subject\/To\/CC\/BCC or even the BODY you can specify the field like {ORDER_ID} and it will be replaced.<strong>\u00a0<\/strong><\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Copy or rename file<\/strong><\/span> action in the filename format fields<\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Move or copy email<\/strong><\/span> action (note: in this case the mailbox folder MUST already exist, the program will not auto-create it)<\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Document conversion<\/strong><\/span> action in the filename\/format where the converted document should be saved<\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Save to database<\/strong><\/span>\u00a0Or <strong><span style=\"text-decoration: underline;\">Extract csv and save to DB<\/span>\u00a0<\/strong>action inside the SQL query.<\/li>\n<li>In the <span style=\"text-decoration: underline;\"><strong>Run script<\/strong><\/span> or <span style=\"text-decoration: underline;\"><strong>Run command<\/strong><\/span>\u00a0actions as arguments<\/li>\n<\/ul>\n<p>and many more.<\/p>\n<hr \/>\n<h2>Conclusion: Extract data<\/h2>\n<p>We hope you found this post useful in extracting data from emails or attachments.<\/p>\n<p>We highly recommend that you read the below TIPS and TRICKS post for a guide to other features in the product where you can use extracted data.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">IMPORTANT:<\/span> Further reading <a href=\"https:\/\/gearmage.com\/blog\/2017\/07\/20\/archive-emails-folders-tips-tricks\/\">TIPS and TRICKS (READ THIS)<\/a><\/strong>\u00a0<a href=\"https:\/\/gearmage.com\/blog\/2017\/07\/20\/archive-emails-folders-tips-tricks\/\">https:\/\/gearmage.com\/blog\/2017\/07\/20\/archive-emails-folders-tips-tricks\/<\/a><\/p>\n<p>As always, please contact us at <a href=\"mailto:support@gearmage.com\">support@gearmage.com<\/a> with any questions or suggestions on this feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Extract data: A comprehensive PRO guide PRO Server offers \u00a0flexible extraction constructs to extract data or fields from both emails AND\/OR attachments. This post will explore how you can setup the PRO Server to extract data using the extraction wizard (Option-1) or using regular expressions (Option-2). Use the Global Filters tab to extract data First &hellip; <a href=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Extract data from emails and attachments &#8211; an in-depth guide&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,6],"tags":[96,19,97,98],"class_list":["post-390","post","type-post","status-publish","format-standard","hentry","category-mad","category-tips","tag-extract-data","tag-extract-data-from-email","tag-extract-data-from-email-attachments","tag-transform-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Extract data from emails and attachments - an in-depth guide - Gearmage Blog<\/title>\n<meta name=\"description\" content=\"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Extract data from emails and attachments - an in-depth guide - Gearmage Blog\" \/>\n<meta property=\"og:description\" content=\"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/\" \/>\n<meta property=\"og:site_name\" content=\"Gearmage Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-21T19:54:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-05T22:52:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email-1024x194.png\" \/>\n<meta name=\"author\" content=\"gearmage\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gearmage\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"},\"author\":{\"name\":\"gearmage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\"},\"headline\":\"Extract data from emails and attachments &#8211; an in-depth guide\",\"datePublished\":\"2017-11-21T19:54:07+00:00\",\"dateModified\":\"2026-02-05T22:52:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"},\"wordCount\":1605,\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/exrtact-data-pick-the-email-1024x194.png\",\"keywords\":[\"extract data\",\"extract data from email\",\"extract data from email attachments\",\"transform data\"],\"articleSection\":[\"Mail Attachment Downloader\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\",\"name\":\"Extract data from emails and attachments - an in-depth guide - Gearmage Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/exrtact-data-pick-the-email-1024x194.png\",\"datePublished\":\"2017-11-21T19:54:07+00:00\",\"dateModified\":\"2026-02-05T22:52:09+00:00\",\"description\":\"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/exrtact-data-pick-the-email.png?fit=1478%2C280&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/exrtact-data-pick-the-email.png?fit=1478%2C280&ssl=1\",\"width\":1478,\"height\":280,\"caption\":\"exrtact data - pick the email\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/extract-data-emails-attachments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extract data from emails and attachments &#8211; an in-depth guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"name\":\"Gearmage Blog\",\"description\":\"Email Processing Tools and Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#organization\",\"name\":\"Gearmage\",\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/gearmage.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1\",\"width\":240,\"height\":58,\"caption\":\"Gearmage\"},\"image\":{\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/#\\\/schema\\\/person\\\/c8728645787bff3555b5873b43161652\",\"name\":\"gearmage\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g\",\"caption\":\"gearmage\"},\"url\":\"https:\\\/\\\/gearmage.com\\\/blog\\\/author\\\/wp-admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Extract data from emails and attachments - an in-depth guide - Gearmage Blog","description":"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","og_locale":"en_US","og_type":"article","og_title":"Extract data from emails and attachments - an in-depth guide - Gearmage Blog","og_description":"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!","og_url":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","og_site_name":"Gearmage Blog","article_published_time":"2017-11-21T19:54:07+00:00","article_modified_time":"2026-02-05T22:52:09+00:00","og_image":[{"url":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email-1024x194.png","type":"","width":"","height":""}],"author":"gearmage","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gearmage","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#article","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"},"author":{"name":"gearmage","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652"},"headline":"Extract data from emails and attachments &#8211; an in-depth guide","datePublished":"2017-11-21T19:54:07+00:00","dateModified":"2026-02-05T22:52:09+00:00","mainEntityOfPage":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"},"wordCount":1605,"publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"image":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"thumbnailUrl":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email-1024x194.png","keywords":["extract data","extract data from email","extract data from email attachments","transform data"],"articleSection":["Mail Attachment Downloader","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","url":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/","name":"Extract data from emails and attachments - an in-depth guide - Gearmage Blog","isPartOf":{"@id":"https:\/\/gearmage.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage"},"thumbnailUrl":"https:\/\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email-1024x194.png","datePublished":"2017-11-21T19:54:07+00:00","dateModified":"2026-02-05T22:52:09+00:00","description":"Extract data from emails or attachments is made easier with Mail Attachment Downloader PRO Server. Use extracted data to perform various actions!","breadcrumb":{"@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#primaryimage","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?fit=1478%2C280&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2017\/11\/exrtact-data-pick-the-email.png?fit=1478%2C280&ssl=1","width":1478,"height":280,"caption":"exrtact data - pick the email"},{"@type":"BreadcrumbList","@id":"https:\/\/gearmage.com\/blog\/extract-data-emails-attachments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gearmage.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Extract data from emails and attachments &#8211; an in-depth guide"}]},{"@type":"WebSite","@id":"https:\/\/gearmage.com\/blog\/#website","url":"https:\/\/gearmage.com\/blog\/","name":"Gearmage Blog","description":"Email Processing Tools and Solutions","publisher":{"@id":"https:\/\/gearmage.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gearmage.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gearmage.com\/blog\/#organization","name":"Gearmage","url":"https:\/\/gearmage.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","contentUrl":"https:\/\/i0.wp.com\/gearmage.com\/blog\/wp-content\/uploads\/2016\/02\/cropped-cropped-GearMage.jpg?fit=240%2C58&ssl=1","width":240,"height":58,"caption":"Gearmage"},"image":{"@id":"https:\/\/gearmage.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gearmage.com\/blog\/#\/schema\/person\/c8728645787bff3555b5873b43161652","name":"gearmage","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ca0fad01f9a63241bc21d4f1f44befe7c62e4ee3bb268fb1adaadc2e49ed0699?s=96&d=mm&r=g","caption":"gearmage"},"url":"https:\/\/gearmage.com\/blog\/author\/wp-admin\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":2,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/posts\/390\/revisions\/1007"}],"wp:attachment":[{"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gearmage.com\/blog\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}