Created 05-24-2016 01:06 PM
Created 05-24-2016 01:20 PM
Java reference : https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
\d stands for a digit [0-9] and + means at least one digit.
.* means any characters
Created 05-24-2016 01:07 PM
NiFi is using Java regular expressions.
Personally, I am using http://regexr.com/ to check my regular expressions.
Created 05-24-2016 01:24 PM
+1 for the RegexR - i wrote some more complex expressions with it, it has a great interactive and visual explainer to help you out as you progress. The final expression can be copied as is from there into NiFi, no special escapes needed, etc.
Created 08-27-2018 06:16 AM
Does regexr.com validates if your Nifi expression is valid as well?
Created 05-24-2016 01:20 PM
Thanks. I'm a novice nifi's user.
I've got in a "extract text" processor this property "grok" below.
grok
^((?<year>\d+).*)$
Created 05-24-2016 01:25 PM
Check out http://regexr.com/ CheatSheet and Examples menu item on the left.
Created 05-24-2016 01:20 PM
Java reference : https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
\d stands for a digit [0-9] and + means at least one digit.
.* means any characters
Created 11-07-2017 10:03 AM
I find nifi regex to have less options. The same regex ( [\.]conf ) in my case to find a configuration file works from outside Nifi.
But on putting this pattern in Nifi ListHDFS processor , File Pattern will not match and the file is never pulled.
Any idea why this would happen ?
Created 06-09-2018 07:56 PM
Hi, personally I am using https://www.debuggex.com/ and https://extendsclass.com/regex-tester.html to check regex.