Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2021, 07:13 AM
mohsen.amiri mohsen.amiri is offline How to know what the character after a special character is. Windows 8 How to know what the character after a special character is. Office 2013
Competent Performer
How to know what the character after a special character is.
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default How to know what the character after a special character is.

Hello
I want to know if space character ( ) has used after all dots, commas and semicolons (. , in a document or not; to fix them if wrong.
How can I do it?


For example have a look at below sample. all are correct, but one comma needs to have a space after it.

{Opened for signature in 1968, the treaty entered into force in 1970. As required by the text, after twenty-five years,NPT Parties met in May 1995 and agreed to extend the treaty indefinitely.}

Is it doable by using Wildcard? If so, how?
Thank you very much.
Mohsen
Reply With Quote
  #2  
Old 10-21-2021, 03:40 PM
Guessed's Avatar
Guessed Guessed is offline How to know what the character after a special character is. Windows 10 How to know what the character after a special character is. Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

A wildcard search for "[,.;]{1}[! ]" would do it BUT...

This is not straightforward as there are plenty of cases where there shouldn't be a space after punctuation. For instance what about numbers or ends of paragraphs?
The number is 24.3 in English but in France it is 24,3.[end of paragraph mark]

What exactly is the purpose of the search? Are you planning on stepping through all the instances to evaluate each one individually?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 10-22-2021, 09:15 PM
mohsen.amiri mohsen.amiri is offline How to know what the character after a special character is. Windows 8 How to know what the character after a special character is. Office 2013
Competent Performer
How to know what the character after a special character is.
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

Guessed
Yes that is what I will do. I want to check all searched words one by one. Do you have another idea?
Reply With Quote
  #4  
Old 10-23-2021, 02:45 AM
Guessed's Avatar
Guessed Guessed is offline How to know what the character after a special character is. Windows 10 How to know what the character after a special character is. Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would probably search for these characters followed by a letter eg "[,.;]{1}[a-zA-Z]"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Change a special Character in Word 2019 Julio Borges Word 3 03-02-2021 09:14 AM
How to know what the character after a special character is. special character from Google jalea148 Word 2 07-28-2018 03:54 PM
How to know what the character after a special character is. Border Special Character vote4gop Word 5 02-28-2015 10:44 PM
search for special character and apply outline? n00bie-n00b Word VBA 0 10-12-2014 03:17 AM
How to know what the character after a special character is. How do I output special character to a specific cell (x,y)? norwood Word VBA 2 01-31-2014 01:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft