I want to sort out all the words which has the below structure :
.getMethod(param);
.getMethod1();
…
The structure is a . dot followed by word which is followed by () paranthesis and ; semicolon.
I want to sort out all the words which has the below structure :
.getMethod(param);
.getMethod1();
…
The structure is a . dot followed by word which is followed by () paranthesis and ; semicolon.
$WordList = @(
'.getMethod(param);'
'.getMethod1();'
'.putthis(that);'
'.getthis();'
'.getthis(that);'
)
$WordList | sort
Thanks Sam . Will give it a try .