- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hi, where can i find the rules of nifi's regex language ?
- Labels:
-
Apache NiFi
Created ‎05-24-2016 01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎05-24-2016 01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
+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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does regexr.com validates if your Nifi expression is valid as well?
Created ‎05-24-2016 01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check out http://regexr.com/ CheatSheet and Examples menu item on the left.
Created ‎05-24-2016 01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, personally I am using https://www.debuggex.com/ and https://extendsclass.com/regex-tester.html to check regex.
