Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11178

Re: Regex Replace() with modified subexpressions?

Newsgroups microsoft.public.scripting.vbscript
Date 2015-11-05 01:09 -0800
References <c62dc780-0b6a-44de-be21-7319105757ae@googlegroups.com> <n1crh7$130$1@dont-email.me>
Message-ID <c9d73d18-456c-4836-8c77-4c6d797c3ea3@googlegroups.com> (permalink)
Subject Re: Regex Replace() with modified subexpressions?
From Jim <google@zolx.com>

Show all headers | View raw


On Wednesday, November 4, 2015 at 4:54:24 AM UTC-7, Steve wrote:
> 
> MS added this to VBS with version 5.5 but only documented it in one 
> place:
> 
> https://msdn.microsoft.com/en-us/library/ms974619.aspx?f=255&MSPPError=-2147217396
> 
> The page is mostly about JScript but there is a "What About VBScript?" 
> section at the end which documents what you want to do.

You're talking about the section about using a function pointer as the second argument to re.Replace(), correct?

That would clean up the code at the point where the re.Replace() is used, but seems to just move most of the complexities of using re.Execute() and sifting through matches and submatches collections into the referenced function.

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Find similar


Thread

Regex Replace() with modified subexpressions? Jim <google@zolx.com> - 2015-11-03 19:45 -0800
  Re: Regex Replace() with modified subexpressions? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-04 09:32 +0100
  Re: Regex Replace() with modified subexpressions? "Steve" <cerberus40+usenet@gmail.com> - 2015-11-04 06:52 -0500
    Re: Regex Replace() with modified subexpressions? Jim <google@zolx.com> - 2015-11-05 01:09 -0800

csiph-web