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
Post a Comment