Regex solution needed -


for these given sentences

//qas computer object add/change/rename/move/delete //qas computer object add / change / rename / move / delete //qas computer object add , change //qas computer object add / change //qas computer object add/change //address space added/removed to/from send connector 

i need regex extract groups of words , words within these groups separated '/', ' / ', ' , '.

so given above sentences i'd such result

add/change/rename/move/delete add / change / rename / move / delete add , change add / change add/change added/removed, to/from 

number of such groups within sentence @ least 1.

number of words can create group @ least 2.

any ideas welcome.

not sure why hamza posted comment instead of answer. here regex interested.

(?:\w+\s?(?:\/|and)\s?)+\w+ 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -