Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing chars in string

I have this code:

inspect w-string1 replacing all x'C48D' by 'c'

But I got this error by compiler

Operand has wrong size

Is there any solution how to replace more chars by one char thru inspect command. Or I must do it by myself via perform loop?

like image 774
Pavel Matras Avatar asked Jan 18 '26 13:01

Pavel Matras


1 Answers

When using the INSPECT statement, both strings must be the same length. The only way to replace multiple characters by a different number of characters is to write your own loop to do it.

like image 159
SaggingRufus Avatar answered Jan 21 '26 05:01

SaggingRufus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!