Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Regular expression help

  1. #1

    Default Regular expression help

    Hello,

    I am trying to parse email body which is an output of step 'Email messages input'. Body contains text as:-

    Code:
    Some random text here.
    
    
    Download your content here:
    
    
    Click here
    <https://www.cs.princeton.edu/courses/archive/fall00/cs426/papers/beier92.pdf>
    
    
    Some random text here.
    I am ultimately trying to parse this email body and store pdf url (https://www.cs.princeton.edu/courses...rs/beier92.pdf) in a variable and then use 'HTTP' at job level to download this pdf.

    I tried few things but am not able to parse pdf url. Could you please help me, here?

    Regards,
    Ritesh

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    What if you try a few things more?
    So long, and thanks for all the fish.

  3. #3

    Default

    Ritesh, how about if you insert a JavaScript step, and use string functions to search for "<http" and then ">".

    Hugo

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.