07-21-2016 09:54 PM
Hello.
I need help with replacing zeros in the string.
I have a string that is the output of the network packet. There are some trailing zeros in the packet.
I cannot see them in normal view, but the size of the string tells me that it is bigger then it looks.
When I switch to hex view, you can see zeros.
I tried to use search/replace function and use to find 0 and replace with empty string constant. But, fro some reason it was not removing zeros.
I need to stop string after *69.
Solved! Go to Solution.
07-21-2016 09:56 PM
Hello.
I need help with replacing zeros in the string.
I have a string that is the output of the network packet. There are some trailing zeros in the packet.
I cannot see them in normal view, but the size of the string tells me that it is bigger then it looks.
When I switch to hex view, you can see zeros.
I tried to use search/replace function and use to find 0 and replace with empty string constant. But, fro some reason it was not removing zeros.
I need to stop string after *69.
07-21-2016 10:32 PM - edited 07-21-2016 10:36 PM
Show your code. You don't want to search and replace zeroes. Those 00 in hex view show they are null characters. (non-printable byte with value of zero). You need to search and replace on that character. (replace string should look like 00 when it is set to show hex code.
07-22-2016 05:40 AM - edited 07-22-2016 05:41 AM
An alternative to the Search And Replace String here would be Match Pattern.
07-22-2016 07:46 AM
Thank you. THis is what I wanted,
07-22-2016 07:47 AM
Thank you
07-22-2016 07:55 AM - edited 07-22-2016 07:56 AM
LOL never occured to me to check that it was already answered. I have nothing new to contribute. 😉