2021年4月2日星期五

How to remove the matched string and also everything after that?

I have this string:

Copy test Trunk 396bce2a-d787-415c-ab1b-8dc755ea7bc0

I would like to match on the word Trunk, remove that word and also remove everything after that matched word.

What do I need to do for a regex match and replace for this scenario?

https://stackoverflow.com/questions/66927143/how-to-remove-the-matched-string-and-also-everything-after-that April 03, 2021 at 10:05AM

没有评论:

发表评论