Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Cannot use reg ex step on field conatining the concatenation of two fields !?

  1. #1

    Question Cannot use reg ex step on field conatining the concatenation of two fields !?


    What I originally intend to do is this:

    Unzip an archive, which always contains two files named 'x.a' and 'y.b'. The file extensions 'a' and 'b' are always the same but 'x' and 'y' are different from archive to archive.
    Initally, 'x.a' and 'y.b' will be provided by the field 'file' of two rows of the same stream.
    This I want to transform into a single row with two fields named 'a' and 'b' - keeping the respective filename.

    Name:  Clipboard05.jpg
Views: 15
Size:  6.4 KB

    Now I came up with a transformation that theoretically (at least) should achieve this - the idea is such:

    Name:  Clipboard07.jpg
Views: 13
Size:  22.0 KB

    A part of the transformation doing this looks as follows:

    Name:  Clipboard02.jpg
Views: 13
Size:  15.6 KB

    Now the problem simply is this - I get no result from the reg ex step (simple expression: ^(.*)$) if I apply it to 'pq' ...

    Name:  Clipboard09.jpg
Views: 13
Size:  10.4 KB

    ... but I get one when I apply it to any other field:

    Name:  Clipboard11.jpg
Views: 14
Size:  10.0 KB

    1) I gave the details about my intention because I am very interested in simpler solutions - if you have one!

    2) Is there a way to make this transformation workable?

    Thanks in advance

    Last edited by joyofdata; 06-22-2013 at 06:16 PM.

  2. #2


    The transformation of the above example:
    Attached Files Attached Files

  3. #3


    It works when I enable "dotall mode" for the reg exp step. Can somebody explain to me why?



  4. #4
    Join Date
    Jun 2012


    "My Mom's cooking was so bad, Indians would come up from South America just to dip their arrows in her gravy." -- Roger Miller
    Attached Files Attached Files
    Last edited by marabu; 06-23-2013 at 03:06 AM.
    So long, and thanks for all the fish.

  5. #5


    nice stuff, marabu!

    Learned two new tricks.

    Poor Roger, though ... :/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.