From: Jo R. <jr...@ne...> - 2011-07-05 22:20:55
|
> 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 |