- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
find line with string and remove blank space nifi
- Labels:
-
Apache NiFi
Created ‎05-02-2022 06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have a flowfile text and i need remove a blank space in specific line (find line with string) :
example :
toto tata toto titi
serve ng angular
to bind sspk nifi processor camelCase
==> find (bind) :
output :
toto tata toto titi
serve ng angular
to bindsspknifiprocessorcamelCase / to bind_sspk_nifi_processor_camelCase
tkt u
Created ‎05-05-2022 03:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can do that using ExtractText Processor to extract the line that you need with word "bind" into an attribute using regular expression "(bind.+$)", then you ReplaceText processor to basically located the same line using the same regular expression and the the replacement value is the attribute from the ExtractText processor (assume its called XYZ) like this ${XYZ:replace(" ","")}
