In order to do this correctly I will have to follow the SRX rules.
now there are two types of regular expressions
1. if found,sentence should break ,like ". "
2. if found, sentence should not break ,like abbreviation U.K or Mr.
For this again there are two parts
1. before breaking
2. after breaking
for example if the rule is
Which says if the pattern "\s*[0-9]+.\s" is found the segment should not break.