java.util.regex.PatternSyntaxException: Unclosed character class

One Star

java.util.regex.PatternSyntaxException: Unclosed character class

Hi,
i hve the following expression in my t-map component:
row2.column0.matches("^(\\d**\\d*)")?row2.column0:"" 

I get an exception with this expression:
Exception in component tMap_1
java.util.regex.PatternSyntaxException: Unclosed character class near index 21
^(\d**\d*)
                            ^

but i can't see my mistake...
Moderator

Re: java.util.regex.PatternSyntaxException: Unclosed character class

Hi littledirk,
Have you tried to switch to "Code" view to see if there is any error line in java code?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: java.util.regex.PatternSyntaxException: Unclosed character class

I'll check that.
Moderator

Re: java.util.regex.PatternSyntaxException: Unclosed character class

Hi,
You can post the screenshot of error line in java code into forum. We will check it for you.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog