You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Yash-777 (via GitHub)" <gi...@apache.org> on 2024/06/15 13:01:08 UTC

[PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Yash-777 opened a new pull request, #1239:
URL: https://github.com/apache/commons-lang/pull/1239

   Method Signature and Preconditions:
   
    * The method replaceSubstringInBetween takes four parameters: str, replace, open, and close. All parameters are marked as final and are expected to be non-null (@param comments indicate this precondition).
    * If any of the preconditions are violated (i.e., if str, open, close, or replace is null), the method simply returns the original str without any modifications.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "Yash-777 (via GitHub)" <gi...@apache.org>.
Yash-777 commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2169547996

   recreated the Pull request of https://github.com/apache/commons-lang/pull/395


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "555vedant (via GitHub)" <gi...@apache.org>.
555vedant commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2253502670

   @garydgregory sir  i would like to work on it what is update of this PR ,
   and  where i can find issue JIRA or issue template??


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "sigee (via GitHub)" <gi...@apache.org>.
sigee commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2374126009

   @Yash-777, @555vedant 
   -1
   In my opinion, replaceSubstringInBetween() is not needed. If you really need such replacements, RegExUtils.replacePattern() can do the same with proper parameters. I think.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory closed pull request #1239: Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’).
URL: https://github.com/apache/commons-lang/pull/1239


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2169714855

   -1: This is such a niche use case that i don't think it belongs here. It is not even shown used within Commons Lang. The Javadoc shows no real word application as well IMO. This kind of text processing would not belong in Commons Lang anyway. We need to be careful and not grow this class into even more of a kitchen sink.
   
   What do others think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2416600215

   Closing, no more dialog. Also, regular expressions built into Java is another option.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the specified string with the one enclosed between two other strings(‘open’ and a ‘close’). [commons-lang]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1239:
URL: https://github.com/apache/commons-lang/pull/1239#issuecomment-2253689755

   > @garydgregory sir i would like to work on it what is update of this PR , and where i can find issue JIRA or issue template??
   
   Hello @555vedant, please see https://github.com/apache/commons-lang/pull/1239#issuecomment-2169714855


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org