My sample text is this:
This is a demo . Of all the places you want to go here! Superb work !
Is your name John ? Or is it that you are hiding your name? Seems to be a good work.But as you know this punctuation is not correct. ( this is not correct) but (this is correct). Similarly (this is not correct ) and this also ( is not correct ) .
The thing is, that it may seems to be inappropriate , but this process is good.
Here quotes are also weird. " Some are ok some are weird ". Also, "there should not" be any "incorrect spelling ". This is semi - boiled.
You can follow these steps:
step 1, step 2 , step 3, step4,step5
Or these steps :
New step 1, new step2,new step 3, new step5
Select this/or that. Otherwise select New\ old or select one / two.
My expected output is:
This is a demo. Of all the places you want to go here! Superb work!
Is your name John? Or is it that you are hiding your name? Seems to be a good work.But as you know this punctuation is not correct. (this is not correct) but (this is correct). Similarly (this is not correct) and this also (is not correct).
The thing is, that it may seems to be inappropriate, but this process is good.
Here quotes are also weird. "Some are ok some are weird". Also, "there should not" be any "incorrect spelling". This is semi-boiled.
You can follow these steps:
step 1, step 2 , step 3, step4, step5
Or these steps:
New step 1, new step2, new step 3, new step5
Select this/or that. Otherwise select New\old or select one/two.
My goal is to remove all the spaces before and after a fullstop, question mark, comma, colon, semi-colon, any type of brackets. Then I would like to give a space after all the punctuations except / and \ slash to follow the rules of typography.
This regex is not working:
\p{po}(?!\x{2F}\x{3b})(?!\x20)
I tried this other way also it is not skipping the slashes:
(?!\x{2F}\x{3b})\p{po}(?!\x20)