<?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 how to use splittext one line value to set next processor attribute in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139203#M31955</link>
    <description>&lt;P&gt;I use splittext processor to split a file per line, for its destination processor, how to set attribute using splitted value?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 10:07:28 GMT</pubDate>
    <dc:creator>121285904</dc:creator>
    <dc:date>2016-06-15T10:07:28Z</dc:date>
    <item>
      <title>how to use splittext one line value to set next processor attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139203#M31955</link>
      <description>&lt;P&gt;I use splittext processor to split a file per line, for its destination processor, how to set attribute using splitted value?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 10:07:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139203#M31955</guid>
      <dc:creator>121285904</dc:creator>
      <dc:date>2016-06-15T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to use splittext one line value to set next processor attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139204#M31956</link>
      <description>&lt;P&gt;
	Hi &lt;A rel="user" href="https://community.cloudera.com/users/11103/121285904.html" nodeid="11103"&gt;@awen hu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	I'd use the ExtractText processor:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;
	Evaluates one or more Regular Expressions against the content of a 
FlowFile.  The results of those Regular Expressions are assigned to 
FlowFile Attributes.  Regular Expressions are entered by adding 
user-defined properties; the name of the property maps to the Attribute 
Name into which the result will be placed.  The first capture group, if 
any found, will be placed into that attribute name.But all capture 
groups, including the matching string sequence itself will also be 
provided at that attribute name with an index value provided, with the 
exception of a capturing group that is optional and does not match - for
 example, given the attribute name "regex" and expression "abc(def)?(g)"
 we would add an attribute "regex.1" with a value of "def" if the "def" 
matched. If the "def" did not match, no attribute named "regex.1" would 
be added but an attribute named "regex.2" with a value of "g" will be 
added regardless.The value of the property must be a valid Regular 
Expressions with one or more capturing groups.  If the Regular 
Expression matches more than once, only the first match will be used.  
If any provided Regular Expression matches, the FlowFile(s) will be 
routed to 'matched'. If no provided Regular Expression matches, the 
FlowFile will be routed to 'unmatched' and no attributes will be applied
 to the FlowFile.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExtractText/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExtractText/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:20:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139204#M31956</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-06-15T13:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to use splittext one line value to set next processor attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139205#M31957</link>
      <description>&lt;P&gt;Thanks, I used "(.+)" set the attribute value.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 15:42:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-splittext-one-line-value-to-set-next-processor/m-p/139205#M31957</guid>
      <dc:creator>121285904</dc:creator>
      <dc:date>2016-06-15T15:42:04Z</dc:date>
    </item>
  </channel>
</rss>

