From: Jo R. <jr...@ne...> - 2011-07-06 05:56:05
|
So in case anyone is interested in the answer, it appears \b means "x0B" or "vertical tab" in ascii. I was able to match it with either \013 (octal) or \x0b (hex) On Jul 5, 2011, at 3:20 PM, Jo Rhett wrote: >> On Tue, Jul 5, 2011 at 3:32 PM, Jo Rhett <jr...@ne...> wrote: >>> I'm seeing a scenario where talking with an Accedian NID unit I receive \b >>> in the output from the unit. Unfortunately \b means "word boundary" in perl >>> regex-land. How can I match this character? (it is a single character and >>> not two) > > On Jul 5, 2011, at 2:07 PM, Matt Zagrabelny wrote: >> It's been a while since I've Expect-ed, but here is an off the cuff idea: >> s/[\000-\037]/ /g > > > Good idea. Curiosity -- any way to know how the debug output chooses to represent characters? Is \b likely to mean \011 or some such? How about if I wanted to match the exact character? I only see it in the exp_internal() output... > > -- > Jo Rhett > Net Consonance : consonant endings by net philanthropy, open source and other randomness > -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness |