Re: Nifi parsing examples

2016-04-27 Thread Matt Burgess
Sorry that was just for example #2 :) > On Apr 27, 2016, at 3:59 PM, Matt Burgess wrote: > > If you can represent the expected string format as a regular > expression, you can use the replaceAll() function [1] with > back-references: > >

Re: Nifi parsing examples

2016-04-27 Thread Matt Burgess
If you can represent the expected string format as a regular expression, you can use the replaceAll() function [1] with back-references: ${url:replaceAll('(http://[a-zA-Z0-9]+:)[a-zA-Z0-9]+(@.*)','$1x$2')} original: http://username:p...@host.com after: http://username:xx...@host.com Note I