-3

For example

I'd like trans:

M:HelloWorld:main(java.lang.String[]) (S)HelloWorld:foo()

To:

HelloWorld:main  HelloWorld:foo

Thanks!

RavinderSingh13
  • 101,958
  • 9
  • 41
  • 77
donydex
  • 1
  • 2
  • 2
    It is always recommended to post your efforts which you have put to solve this problem as we all are here to learn. – RavinderSingh13 Aug 01 '18 at 02:14
  • 1
    See: [The Stack Overflow Regular Expressions FAQ](http://stackoverflow.com/a/22944075/3776858) – Cyrus Aug 01 '18 at 03:13
  • Please avoid *"Give me the codez"* questions. Instead show the script you are working on and state where the problem is. Also see [How much research effort is expected of Stack Overflow users?](https://meta.stackoverflow.com/q/261592/608639) – jww Aug 01 '18 at 06:04

1 Answers1

-1

Try with regex to pull the desired result

(?:(HelloWorld:\w*)\(.*?\))

DEMO

Ajeet Kumar
  • 601
  • 5
  • 12