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

Writing regular expression in tmap

Hi all,

 

How to write regular expression in tmap.

 

Source column data.

02 04OCT 10:48:16 220001 .

 

Output:

col1  col2      col3      col4

02,  04OCT,  10:48:16, 220001

 

Thanks

Shree

Labels (2)
20 Replies
Anonymous
Not applicable
Author

Hi @Chirgal,

 

Let me explain over view about file.

 

1) Source file come with header,footer and along with not related lines in the file between records. (using tfileinputfullrow ,tfilter and extractdelimeitedfiled done)

2) Single records come with multiple lines 2,3 or 4 lines some records. (tmap done)

3) based on records need to split columns.Some contains space, multiple space and no fixed length for columns.(not done)

 

Hints:

 

1) Records start with digit, we need to pick only 2 lines which lines start with digits.

2) Need to concatenate 2 lines into single line.

3) remove space and split fields and store into database.

  

 

My design: 

 Step 1 and step 2 i have resolved.  Problem my facing with spaces.

 

Thanks

Shree