Assuming all my words are seperated by blank spaces i.e sample sentence:
the browser keeps sending requests to check
I should match tbksrtc, which is first letter of every word. Is this better to do with regex? rather than spliting it into array(using blank space).
If yes, how would one write that regex?
You can use the following regex:
which will match a letter if preceded either by whitespace or the start of the string. Don’t forget to escape with abandon to actually force that regex into a Java string.
Quick PowerShell test: