hello. I want to change the sentence order randomly (by dot). For example:
1 My mother is home. 2 My father is at work. 3 My sister loves hot milk. 4 My lovely dog is here. 5 I go to mall. 6 She seen Jupiter. 7 I read a book. 8 I drove all night. 9 Book is here. 10 Many people want.
The output should be:
8 I drove all night. 5 I go to mall. 1 My mother is home. 7 I read a book. 2 My father is at work. 9 Book is here. 3 My sister loves hot milk. 10 Many people want. 4 My lovely dog is here. 6 She seen Jupiter.
I made a regex, but must be improved:
Find: (.*?\.)(.*?\.)(.*?\.)(.*)|($4$1)|$2$4
Replace by: $4$3$2$1$5
Can anyone help me?