?STREXTRACT("<AccountNum>999999999</AccountNum>"
,"<AccountNum>","</AccountNum>")
will give you the data between the tags. If you want just the tags, and
the tags have no digits and the data is all digits, you could do:
?CHRTRAN("<AccountNum>999999999</AccountNum>","0123456789","")
will give you "<AccountNum></AccountNum>"
Fred
On Thu, May 21, 2015 at 8:34 AM, Ken Kixmoeller (ProFox) <
[email protected]> wrote:
> RegEx makes me irregular!!!
>
> I guess I need to take a class or something. Angers me when I can't figure
> out something like this....
>
> Nevertheless, I have a timely need to make this string:
>
> "<AccountNum>999999999</AccountNum>"
>
> to this:
>
> "<AccountNum></AccountNum>"
>
> NOTES:
> -- The string shown is part of a much larger string.
> -- The 9s are variable-length numeric characters.
>
> Thank you so much - ---
>
> Ken
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/cajcbksoa08n3yhhropidobvm9kuq18m-3kkxmfh6hh6d-x8...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.