<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Parsing flow file or attribute in Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227501#M189361</link>
    <description>&lt;P&gt;I have two scenario's where I need help to extract the values&lt;/P&gt;&lt;P&gt;1) Flow file have the content as below&lt;/P&gt;&lt;P&gt;*********content of flow file***********&lt;/P&gt;&lt;P&gt;field_1=field1value&amp;amp;feild_2=field2value&amp;amp;field_3=field3value&amp;amp;...&amp;amp;fieild_n=fieldnvalue&lt;/P&gt;&lt;P&gt;********End of Content***************&lt;/P&gt;&lt;P&gt;I want to extract values of field1, field2, field3 ... field_n and store them to 3 attributes. Can I get regular expression example to do that using ExtractText in Nifi.&lt;/P&gt;&lt;P&gt;or say I want to extract value of field_x (1 &amp;lt; x &amp;lt; n) attribute from above list, how can I do that ?&lt;/P&gt;&lt;P&gt;2) If I have an attribute with value as below&lt;/P&gt;&lt;P&gt;**********attrbitue vlaue***********&lt;/P&gt;&lt;P&gt;field_1=field1value&amp;amp;feild_2=field2value&amp;amp;field_3=field3value&amp;amp;...&amp;amp;fieild_n=fieldnvalue&lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;P&gt;I want to extract value of field_x (1 &amp;lt; x &amp;lt; n) attribute from above list, how can I do that ?&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 03:58:12 GMT</pubDate>
    <dc:creator>anilcseiitm2006</dc:creator>
    <dc:date>2017-05-11T03:58:12Z</dc:date>
    <item>
      <title>Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227501#M189361</link>
      <description>&lt;P&gt;I have two scenario's where I need help to extract the values&lt;/P&gt;&lt;P&gt;1) Flow file have the content as below&lt;/P&gt;&lt;P&gt;*********content of flow file***********&lt;/P&gt;&lt;P&gt;field_1=field1value&amp;amp;feild_2=field2value&amp;amp;field_3=field3value&amp;amp;...&amp;amp;fieild_n=fieldnvalue&lt;/P&gt;&lt;P&gt;********End of Content***************&lt;/P&gt;&lt;P&gt;I want to extract values of field1, field2, field3 ... field_n and store them to 3 attributes. Can I get regular expression example to do that using ExtractText in Nifi.&lt;/P&gt;&lt;P&gt;or say I want to extract value of field_x (1 &amp;lt; x &amp;lt; n) attribute from above list, how can I do that ?&lt;/P&gt;&lt;P&gt;2) If I have an attribute with value as below&lt;/P&gt;&lt;P&gt;**********attrbitue vlaue***********&lt;/P&gt;&lt;P&gt;field_1=field1value&amp;amp;feild_2=field2value&amp;amp;field_3=field3value&amp;amp;...&amp;amp;fieild_n=fieldnvalue&lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;P&gt;I want to extract value of field_x (1 &amp;lt; x &amp;lt; n) attribute from above list, how can I do that ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 03:58:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227501#M189361</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-11T03:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227502#M189362</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000"&gt;@Anil Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are like me, and dislike RegEx, one trick you can try is to use the SplitContent processor first.  Change config dropdown to use Text instead of Hexadecimal, and use the byte sequence of your pair delimiter &amp;amp;.  This would simplify the RegEx if you wanted to use ExtractText still.  Or perhaps you can explore using another SplitContent processor on the = to get the field and value tokens separately.   Hopefully you can avoid the RegEx there.&lt;/P&gt;&lt;P&gt;As always, if you find this post helpful, please accept the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 12:31:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227502#M189362</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-05-11T12:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227503#M189363</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000" target="_blank"&gt;@Anil Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could use extractText processor configured similar to the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15323-screen-shot-2017-05-11-at-92413-am.png" style="width: 574px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15279iE39A2834E66A2AC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15323-screen-shot-2017-05-11-at-92413-am.png" alt="15323-screen-shot-2017-05-11-at-92413-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I changed the two shown standard properties and added two additional regex properties.&lt;/P&gt;&lt;P&gt;Using the following example input:&lt;/P&gt;&lt;PRE&gt;field_1=field1value&amp;amp;field_2=field2value&amp;amp;field_3=field3value&amp;amp;field_4=field4value&lt;/PRE&gt;&lt;P&gt;You will end up with the following attributes on your FlowFile:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15321-screen-shot-2017-05-11-at-92000-am.png" style="width: 95px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15280i25EEC1AF05E60DBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15321-screen-shot-2017-05-11-at-92000-am.png" alt="15321-screen-shot-2017-05-11-at-92000-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There will be a few additional attributes created that you can ignore, but you will have a sequentially numbered attribute names with the associated values and one field_last that will have the very last value in your input string.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:18:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227503#M189363</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T01:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227504#M189364</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;: thanks for the solution and it works specifically to the example of field_1, field_2.&lt;/P&gt;&lt;P&gt;Actually my intention is, I have couple of fields as part of flow file which are separated by character &amp;amp;. My requirement is I would like to extract the specific field based on field name. I have been trying to achieve that experimenting regular expressions but could not able to succeed so far. Infact I ma trying to understand the regular expressions you specified but could not get hold of it.&lt;/P&gt;&lt;P&gt;can you please let me know how to extract the fields in the flow file whose content is say&lt;/P&gt;&lt;P&gt;firstname=testfirstname&amp;amp;lastname=testlastname,email=testemail@email.com,address=test address.&lt;/P&gt;&lt;P&gt;I want to extract attributes firstname, lastname, email, address with appropriate values.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:55:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227504#M189364</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T00:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227505#M189365</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12636/ssahi.html" nodeid="12636"&gt;@Sonu Sahi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks for the response. The approach mentioned above does not give the ideal solution for my requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:57:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227505#M189365</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T00:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227506#M189366</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000"&gt;@Anil Reddy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Your new example does not use a "&amp;amp;" between all your fields. Is that a typo?  I see "&amp;amp;" between first two fields and "," after that.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:32:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227506#M189366</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-12T01:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227507#M189367</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000"&gt;@Anil Reddy&lt;/A&gt;&lt;P&gt;Are the four fields you are trying to extract the values from consistently:&lt;/P&gt;&lt;P&gt;"firstname"&lt;/P&gt;&lt;P&gt;"lastname"&lt;/P&gt;&lt;P&gt;"email"&lt;/P&gt;&lt;P&gt;"address"&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:44:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227507#M189367</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-12T01:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227508#M189368</link>
      <description>&lt;P&gt;sorry, its a typo mistake.&lt;/P&gt;&lt;P&gt;firstname=testfirstname&amp;amp;lastname=testlastname&amp;amp;&lt;A href="mailto:email=testemail@email.com"&gt;email=testemail@email.com&lt;/A&gt;&amp;amp;address=test address.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:46:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227508#M189368</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T01:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227509#M189369</link>
      <description>&lt;P&gt;yes, i want to extract values of firstname, lastname, email, address&lt;/P&gt;&lt;P&gt;we can assume like below.&lt;/P&gt;&lt;P&gt;If the flow files content is as &lt;/P&gt;&lt;P&gt;&amp;amp;firstname=testfirstname&amp;amp;lastname=testlastname&amp;amp;&lt;A href="mailto:email=testemail@email.com"&gt;email=testemail@email.com&lt;/A&gt;&amp;amp;address=test address&amp;amp;&lt;/P&gt;&lt;P&gt;I want to extract XXXX in regex &amp;amp;firstname=XXXXXXXx&amp;amp;.* as value for firstname field&lt;/P&gt;&lt;P&gt;extract XXXXXx in regex .*&amp;amp;lastname=XXXXX&amp;amp;.* as value for lastname etc.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227509#M189369</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T01:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227510#M189370</link>
      <description>&lt;P&gt;Just for tagging!&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:50:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227510#M189370</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T01:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227511#M189371</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the structure or the fields order is not consistent.&lt;/P&gt;&lt;P&gt;I would like to put it this way, there are lot number of fields separated by '&amp;amp;' in the flow file and I just want to extract specific fields from the flow file content like&lt;/P&gt;&lt;P&gt;&amp;amp;testfield=testfieldvalue&amp;amp;testafield=testafieldvalue&amp;amp;... m number of fields...&amp;amp;firstname=firstnamevalue&amp;amp;... n number of fields ... &amp;amp;lastname=lastnamevalue&amp;amp; .... x number of fields ... &amp;amp;email=testemail@email.com&amp;amp; .... y number of fields .... &amp;amp;address=test address&amp;amp;...z number of fields .... &amp;amp;&lt;/P&gt;&lt;P&gt;Hope this gives better picture!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 02:06:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227511#M189371</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T02:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227512#M189372</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got the answer. I can do something as below to extract the specific field value. For example for fisrtname, I do as below in ExtractText processor&lt;/P&gt;&lt;P&gt;.*&amp;amp;firstname=(.*?)&amp;amp;.*&lt;/P&gt;&lt;P&gt;but I see the copies of the attributes like firstname, firstname.0, firstname.1 etc. How can I mitigate the creation of rest of attributes and generate only "firstname".&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 02:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227512#M189372</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T02:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227513#M189373</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000" target="_blank"&gt;@Anil Reddy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You can get rid of capture group 0 by changing the "Include Capture Group 0" property to false.&lt;/P&gt;&lt;P&gt;Capture groups are defined using ().  what falls between them is a capture group.  You can create a single java expression that has multiple capture groups.  So the ExtractText processor creates a attribute for each of these capture groups. Then the complete result of the regular expression is assigned to the property name you created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15336-screen-shot-2017-05-11-at-33603-pm.png" style="width: 601px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15277iAB646795267D3555/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15336-screen-shot-2017-05-11-at-33603-pm.png" alt="15336-screen-shot-2017-05-11-at-33603-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the above i have created four different java regular expressions.  Each runs against the content of the incoming FlowFile.  Each Regex has one capture group (.*?).  As result you will have address.1= to that one defined capture group.  NiFi also wants to create the attribute as you defined with just "address". so the &amp;lt;propertyname&amp;gt;.num attributes are created because of the use of capture groups in your regex.&lt;/P&gt;&lt;P&gt;For example, let assume the firstname property had the following regex:&lt;/P&gt;&lt;PRE&gt;firstname=(.*?)[&amp;amp;]{1}lastname=(.*?)[&amp;amp;]{1}&lt;/PRE&gt;&lt;P&gt;Here you see i have two capture groups in one regular expression.&lt;/P&gt;&lt;P&gt;This would translate in to two new attributes on your flowfile:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15337-screen-shot-2017-05-11-at-35325-pm.png" style="width: 117px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15278i34AFE3BD4B83D37F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15337-screen-shot-2017-05-11-at-35325-pm.png" alt="15337-screen-shot-2017-05-11-at-35325-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:17:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227513#M189373</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T01:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227514#M189374</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/525/mclark.html"&gt;Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks for the latest response. Its informative and gives more understanding about regular expressions!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 03:27:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227514#M189374</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2017-05-12T03:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227515#M189375</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000" target="_blank"&gt;@Anil Reddy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since you don't know where in the content these four fields will fall, I would suggest using the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15339-screen-shot-2017-05-11-at-42059-pm.png" style="width: 596px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15276iE1DE4E1D67D6CE1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15339-screen-shot-2017-05-11-at-42059-pm.png" alt="15339-screen-shot-2017-05-11-at-42059-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The other regex rules I provided expect address as the last field.&lt;/P&gt;&lt;P&gt;these will work no matter where in the content these patterns are found.&lt;/P&gt;&lt;P&gt;The .*&amp;amp;firstname=(.*?)&amp;amp;.* will not work in all cases since it expect you to have 1 or more characters followed by "&amp;amp;filename=" followed by a many characters up to the last found "&amp;amp;" followed by 1 or more trailing characters.  This expression will not work should firstname be the first or last field in the content.&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;P&gt;Matt

If you found my answers helpful to your question, please mark it as "accepted"&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227515#M189375</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T01:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227516#M189376</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Does this one address=([a-zA-Z0-9 ,]+) mean NiFi can find the column named "address"?&lt;/P&gt;&lt;P&gt;I tried it, but no luck. Would you please upload an example?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 03:36:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227516#M189376</guid>
      <dc:creator>alvinuw</dc:creator>
      <dc:date>2017-06-07T03:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing flow file or attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227517#M189377</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11929/alvinuw.html" nodeid="11929"&gt;@Alvin Jin&lt;/A&gt; &lt;/P&gt;&lt;P&gt;My suggestion would be use something like:&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can enter your regex and sample test you want to run it against.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 04:02:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Parsing-flow-file-or-attribute-in-Nifi/m-p/227517#M189377</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-06-07T04:02:52Z</dc:date>
    </item>
  </channel>
</rss>

