Expounding on a RE isn't working
Posted: Mon Sep 30, 2013 5:36 pm
I have a Macro that does an RE Replace. Keeps digits (0-9) plus CR and LF. It strips everything but digits from data.
Replace: [\x00-\x09\x0B-\x0C\x0E-/:-ÿ]
With: nothing
I'd forgotten how I made this happen, but fortunately I documented it in the Macro Description.
I tried to do this RE Replace, while it's keeping 0-9 and CR and LF, it is wiping out A-Z, which I want to keep.
Replace: [\x00-\x09\x0B-\x0C\x0E-/:-@\[-ÿ]
With: nothing
To keep from going blind, let me break it out. There are a series of ranges I'm trying to replace with nothing.
\x00-\x09
\x0B-\x0C
\x0E-/
:-@
\[-ÿ
Replace: [\x00-\x09\x0B-\x0C\x0E-/:-ÿ]
With: nothing
I'd forgotten how I made this happen, but fortunately I documented it in the Macro Description.
I tried to do this RE Replace, while it's keeping 0-9 and CR and LF, it is wiping out A-Z, which I want to keep.
Replace: [\x00-\x09\x0B-\x0C\x0E-/:-@\[-ÿ]
With: nothing
To keep from going blind, let me break it out. There are a series of ranges I'm trying to replace with nothing.
\x00-\x09
\x0B-\x0C
\x0E-/
:-@
\[-ÿ