Can someone help with an idea of how to proceed with this Please
I have a sentence: (successful) soccer (club(s)) (managers(abcd))
I want it in format of array as follows.
Arr[0] = successful Arr[1]=soccer , Arr[2]=club,Ar[3]=s , Arr[4] = managers , Arr [5]= abcd.
Later I want to generate sentences from the array .
Example words being in same order but some words can miss which will generate some array of strings again.
String1 = successful soccer clubs managers abcd.
String2 = Successful Soccer
string3 = clubs
string4 = managers
string5=successful managers
and so on
Is there a way i can generate all the combinations.The jumbling strings are not required just in the same order.No issue if some strings misses.I want all combinations.Can you please help.
From the list of combinations we got in the array.Is it possible that whenver a single charater “s” comes we remove the space before it and which adds the s to previous word.
For Example : This is a text s string.
Outcome : This is a texts string
want this to be applied for all the values in array