Ask Your Question
1

How do you use the field renamer for _

asked 2018-07-14 08:52:51 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I am attempting to use the underscore in the field flattener processor and then hook that up to the field renamer processor to remove part of the suffix ex: Before: Alabama_activities_park After: activities_park

This is what ive tried but neither seems to have worked. Thanks!

/'Alabama_(.)' /'Alabama\w(.)'

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-07-16 11:25:11 -0500

iamontheinet gravatar image

Hi!

If your input is Alabama_activities_park and your desired output is activities_park, then the following will work in Field Renamer processor:

Source Field Expression: /Alabama_(.*)
Target Field Expression: /$1

Cheers, Dash

edit flag offensive delete link more

Comments

Hi, I was just just wondering how to handle if the field has some special character. Example: '��\"EMPNO\"'. I was trying to rename it as EMPNO.

mateen16 gravatar imagemateen16 ( 2019-06-06 20:03:00 -0500 )edit

Please ask this as a new question - nobody will see it here

metadaddy gravatar imagemetadaddy ( 2019-06-06 20:03:59 -0500 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2018-07-14 08:52:51 -0500

Seen: 138 times

Last updated: Jul 16 '18