Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 12-10-2019 05:34 AM - edited 12-10-2019 06:57 AM
Hi,
I am trying to remove all new lines from base64encoded string using replaceText processor.
Properties for replaceText processor is as follows:
Search Value : \\n
Replacement Value:$1
Character Set: UTF-8
Maximum Buffer Size: 10MB
Replacement Strategy: Regex Replace
Evaluation Mode: Line-by-Line
But this not working.
Created on 12-11-2019 04:25 AM - edited 12-11-2019 04:56 AM
May be it will be useful for someone.
I used searchValue as "\p{C}" and ReplaceValue as empty String
\p{C} finds all non-printable characters.
Created 12-10-2019 09:46 AM
Your "Replacement Value" is set to "$1".
This means that the replacement value is the value associated to the first java regex capture group found in your configured "Search Value".
The issue is your "Search value" contains no capture groups.
Perhaps providing a sample input content and desired output content would help here.
Hope this helps you,
Matt
Created on 12-10-2019 10:14 PM - edited 12-10-2019 10:22 PM
Thanks Matt for you response.
Below is the sample input and desired output
Sample Input:
sdfasdjfsjdbfuk3ewqe
qweqiwqwdqw372ie=
Desired output
sdfasdjfsjdbfuk3ewqeqweqiwqwdqw372ie=
Created 12-11-2019 01:05 AM
@MattWho It is not newline, its CTRL M (^M) characters. I am able to see the ^M characters in vi editor.
Created on 12-11-2019 04:25 AM - edited 12-11-2019 04:56 AM
May be it will be useful for someone.
I used searchValue as "\p{C}" and ReplaceValue as empty String
\p{C} finds all non-printable characters.