Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tRegexField to split a column

Hi guys, 

 

I'm trying to split a column into severals.

First step, I would like to retrieve any chacarter before the first , 

so I used this regular expression : "([^,]+?),.*"

It work on a website editor like Rubular but doesn"t work on the component and the tLogRow displays blank lines.

Can you explain me the reason please ?

 

Exemple : My name is David(a), I am england

The result should be My name is David(a)

Labels (2)
1 Solution

Accepted Solutions
fdenis
Master
Master

your regexp may be "([^,]*),.*"
but you may uses split for that.

tRegexField is not know as a talend component,
you may use tMap or tjavarow to apply regexp.

Regrards

View solution in original post

5 Replies
fdenis
Master
Master

your regexp may be "([^,]*),.*"
but you may uses split for that.

tRegexField is not know as a talend component,
you may use tMap or tjavarow to apply regexp.

Regrards

Anonymous
Not applicable
Author

Thank you for the answer. 

Anonymous
Not applicable
Author

why did you say  tRegexField is not a Talend component ? I found it well in the Palette

fdenis
Master
Master

because you cannot find this component into talend doc.
https://help.talend.com/search/all?content-lang=en-US
it may be an addon or a custom component.
Anonymous
Not applicable
Author

oh sorry my bad on this . Its name is tExtractRegexFields