Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Regex valiadation using Kettle Java script

  1. #1
    Join Date
    Jun 2007
    Posts
    138

    Default Regex valiadation using Kettle Java script

    Can I use some regex into Javascript Tab?

    (Kettle 2.5,transformation)

    I want that for a string of length 11,
    Pattern is like first 3 shd be character,then 8 number..

    How can I put that?
    Regards,
    kedar.mehta@tcs.com ,
    Tata consultancies Ltd

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    In the modified javascript step using isRegExp().

    Regards,
    Sven

  3. #3
    Join Date
    Jun 2007
    Posts
    138

    Default API for methods

    Wow...

    Its nice interface...Helping me a lot..

    But can u tell me from where I can get API doc for this?

    Like wat is return value & expected paras for methods like isRegEx()?


    Thanx...
    Regards,
    kedar.mehta@tcs.com ,
    Tata consultancies Ltd

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    Right click on the function in the left hand tab and select "sample"... a sample script will appear on the right hand side using the function... next step is to look at the source code if required.

    Regards,
    Sven

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.