例如: 输入String是 Input = "Hello there, How are you? Fine!! @xyz"
和输出将 Output = "Hello there myWord How are you myWord Fine myWord myWord myWord xyz"
我试图与Pattern类和Matcher类,但它只是一个替代型图案和str.replace(".",
什么是Java做的弦乐以下替换的最佳方式: 我的文字,看起来与此类似: one two [[**my_word** other words]] three four [[**my_other_word** other words]] five six
,我想以下文本 one two **my_word** three four **my_other_word** five six
我试过使