I need some help on removing the middle chars and leave the first 5 characters and last 5 characters using regex
i want this output
0x388c ... b19297but am getting this error Use of uninitialized value $_ in pattern match (m//)
my $char = "0x388c818ca8b9251b393131c08a736a67ccb19297"; my($output) = $char = /^(?<=\S{5})\S(?=\S{7})/; print $output;
In reply to remove chars with regex by frank1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |