Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: IsRegExp in MJS

  1. #1
    Join Date
    Feb 2009

    Default IsRegExp in MJS

    Hi ,

    I am using IsRegExp in MJS for the first time . to find a match if the input(string) column contains


    Alert(isRegExp(col1, reg5 + "Matches")

    this is not working.

    could anyone please give the correct expression

    thanks in advance

  2. #2
    Join Date
    Apr 2008


    They are Java RegEx... different from Perl or grep regex.

    Try for help.

    Not sure what you are trying to accomplish with the leading //
    You syntax would be close (ignoring the // ) if you were trying to match one character, rather than "contains"

    Contains would be more like ".*[g-zG-Z].*"

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.