0

I have a string of the following form:

No Status: not enough information to provide one. more research and data-gathering is required.

I am trying to remove everything after the ':' up to the first space after the '.', so that the result would be like the following:

 No Status: more research and data-gathering is required.

Is there any regex that I can use to achieve this in JavaScript? Any insights are appreciated.

ceno980
  • 1,977
  • 1
  • 12
  • 26
  • Use split twice, first by ```":"``` and then by ```"."```. – sibasishm Oct 25 '19 at 09:32
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/a/2759417/3832970) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Oct 25 '19 at 09:32

0 Answers0