What does regex do with a situation like this?

Henry Rich

On Thu, Mar 17, 2022, 12:25 PM Raul Miller <[email protected]> wrote:

> I think Henry's concern is that consistent replacement of an empty
> string in a context where multiple replacements can occur is an
> open-ended specification problem, leading to an infinite loop.
>
> On reflection, though, I think that "replace each instance once in the
> original" is the concept here.
>
> That said, the challenge would still be "how do we reason about this"?
>
> (If we could  even come up with a clear and simple english description
> of the desired behavior, we might pose it as a programming problem in
> the programming forum.)
>
> Thanks,
>
> --
> Raul
> On Thu, Mar 17, 2022 at 5:13 AM 'Kenneth Lettow' via Beta
> <[email protected]> wrote:
> >
> > I was able to reproduce the problem on Win10.
> >
> > X stringreplace Y
> >
> > |index error: stringreplace
> >
> > | rep ind}exp#txt
> >
> > |[-307] c:\users\xxxxx\j903-user\temp\26.ijs
> >
> > JVERSION
> >
> > Engine: j903/j64avx2/windows
> >
> > Release-a: commercial/2021-12-16T15:15:09
> >
> > Library: 9.03.08
> >
> > Qt IDE: 1.9.5/5.15.2(5.15.2)
> >
> > Platform: Win 64
> >
> > Installer: J903 install
> >
> > InstallPath: c:/users/xxxxx/j903
> >
> > Contact: www.jsoftware.com
> >
> > On Fri, Mar 11, 2022 at 11:48 AM Eric Iverson <[email protected]>
> > wrote:
> >
> > > Raul,
> > > Beta is a good place, at least for now. Is this with a custom build JE?
> > > First step is to see if it fails in an official 903 release.
> > >
> > > On Fri, Mar 11, 2022 at 11:26 AM Raul Miller <[email protected]>
> > > wrote:
> > >
> > > > I ran into a bizarre error in stringreplace while working on
> > > > converting dictionary content to wiki format:
> > > >
> > > > |index error: stringreplace
> > > > |   rep     ind}exp#txt
> > > >
> > > >       #rep
> > > > 323777
> > > >       #ind
> > > > 323777
> > > >       $txt
> > > > 12253
> > > >
> > > > That said, I have been experiencing odd problems with my machines
> > > > recently, so before I spend too much time on this: can anyone else
> > > > reproduce the problem?
> > > >
> > > > Here's a script which triggers this error for me:
> > > >
> > > > https://gist.github.com/rdm/bf14417a605849ba61e397f888ace8c5
> > > >
> > > > (Also... is the beta forum the right forum for this kind of thing?)
> > > >
> > > > Thanks,
> > > >
> > > > --
> > > > Raul
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> >
> >
> > --
> > *Kenneth Lettow*
> > Director Market Intelligence | Thomas, a Xometry Company
> > Thomasnet.com <https://www.thomasnet.com> | #TogetherForIndustry
> > <https://www.thomasnet.com> <https://www.thomasnet.com>
> > <https://www.thomasnet.com>[image: Thomas For Industry]
> > <https://www.thomasnet.com>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to