Data360 Analyze

  • 1.  Multifilter - Regex with Java Code - Error unicode to String

    Posted 07-01-2021 11:13
    Good Afternoon,
     
    I'm trying to do some validations with regex inside all a records one to one with node Mutifilter in Java Code but I am having a hard time to do it when the register is Unicode type
     
    Because I need to convert unicode to String to check it with .matches method and I can't do it
     
    This is my code:
     
    If you need I can send a .ina with my flow

     



    error_unicodeToString.jpg
    unicode_identificador.jpg
    MultiFilter.jpg

     



  • 2.  RE: Multifilter - Regex with Java Code - Error unicode to String

    Employee
    Posted 07-06-2021 04:02

    You also raised a ticket with a similar question that also asked about using Python to validate an email address.

    Per my response on the ticket, I cannot really comment on the Java issues but I thought I would post the example of using Python scripting in a Transform node, in case it is useful to the community. Perhaps someone in the community who is familiar with Java could comment on your original enquiry.

    ConfigureFields script:

    ProcessRecords script:

    Which generates the following results:

     

     

    Attached files

    Check_Fields_for_Valid_Email - 6 Jul 2021.lna