Re: [pcre-dev] confirmation on correct use for GlobalReplace

トップ ページ
このメッセージを削除
著者: David Byron
日付:  
To: 'Craig Silverstein'
CC: pcre-dev
題目: Re: [pcre-dev] confirmation on correct use for GlobalReplace
> } My tests pass if I call GlobalReplace in a loop, like this:
>
> This is the solution I would propose, too. It's slower than the
> optimal solution, but simple and easy to understand. Even if you
> could find a regex that worked, it would probably be really
> complicated.


I'm inclined to agree with you, but I'm still curious what the regex would
be.

> What do you want to do with text like:
>    'that+the is the best'


In this case I'd like to keep the string as it is -- not removing 'the'
here.

-DB