Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

ExtractText expression doesn't work

avatar
New Contributor

Hi,

I have e simple txt file for test:

1;God of War 1
2;God of War 2
3;God of War 3
4;God of War 4
5;God of War Chains of Olympus
6;God of War Ghost of Sparta
7;God of War Ascension
8;Batman Arkhan Asylum
9;Batman Arkhan City
10;Batman Arkhan Knight

I want get the values and split with a ExtractText processor. I create two properties in processor, id and desc

id value -> (.*?);

desc value -> .*?;(.*?);

When the process goes to matched relationship, it get only id value, and desc property comes blank

1 ACCEPTED SOLUTION

avatar
New Contributor

I solved this problem with using 

(.*?); in first attribute 
and .*?;(.*) in the second

View solution in original post

1 REPLY 1

avatar
New Contributor

I solved this problem with using 

(.*?); in first attribute 
and .*?;(.*) in the second