Skip to main content

Hi,

 

 

I have many attributes with len 13. Need to remove first 5 characters of each of them (these 5 can be different).

E.g. att1=1001478577259

 

        att2=1247833654578 and so on.

 

need to get : att1=78577259

 

                       att2=33654578

How to do this without putting multiple SubstringExtractors?

Hi,

 

 

You can use the StringReplacer with regular expression. For example,

 

Attributes: attr1, attr2, ...

 

Text to Match: ^.{5}(.+)$

 

Replacement Text: \\1

 

Use Regular Expressions: Yes

 

 

Takashi
Takashi,

 

 

Great thanks.

 

 

Aleksandar

Reply