On Wed, Mar 30, 2016 at 1:35 PM, Roger Eller
wrote:
> "[^0-9]" instead of "[^0-9\ ]" is what works for me.
When we get down it, I want spaces, too.
Then again, I guess the result is identical whether or not the space is
included; there is no need to change a space to a space . . .
--
Dr. Ri
"[^0-9]" instead of "[^0-9\ ]" is what works for me.
On Wed, Mar 30, 2016 at 12:30 PM, Peter Haworth wrote:
>
> "[^0-9\ ]" is exactly what I'm trying to do.
>
> Thank you all so much.
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
>
>
___
use
On Wed, Mar 30, 2016 at 12:30 PM, Peter Haworth wrote:
> ^ outside [] means start of line.
[insert head-banging here . . .]
Argh. Thank you. That's exactly what I need.
"[^0-9\ ]" is exactly what I'm trying to do.
Thank you all so much.
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
__
Wasn't sure about the need for "+". The dictionary entry for replaceText
says it replaces all instances of strings that match the regex.
On Wed, Mar 30, 2016 at 12:33 PM Roger Eller
wrote:
> *put* replaceText(fld 1, "[^0-9]+", space) into fld 2
>
>
>
> On Wed, Mar 30, 2016 at 3:14 PM, Dr. Hawki
*put* replaceText(fld 1, "[^0-9]+", space) into fld 2
On Wed, Mar 30, 2016 at 3:14 PM, Dr. Hawkins wrote:
> I'm trying to filter a string to change everything but digits to spaces.
>
> It would seem that
>
>
> replaceText("ab26 g9", "^\d",space)
>
>
> should produce " 26 9", but for the liv
Try [^\d]
^ outside [] means start of line.
On Wed, Mar 30, 2016 at 12:15 PM Dr. Hawkins wrote:
> I'm trying to filter a string to change everything but digits to spaces.
>
> It would seem that
>
>
> replaceText("ab26 g9", "^\d",space)
>
>
> should produce " 26 9", but for the live of me, I
in
> any context.
Use "[^0-9]" instead of "^\d".
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/negating-in-a-regexp-tp4702810p4702811.html
Sent from the Revolution - User mailing list archive at Nabble.com.
I'm trying to filter a string to change everything but digits to spaces.
It would seem that
replaceText("ab26 g9", "^\d",space)
should produce " 26 9", but for the live of me, I can't get ^ to work in
any context.
I've even tried playing with the regex builder plugin, with no success.
Am