Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
P.S. You can’t use the inside the brackets, even though it is very tempting, since means “any white space”, which apparently includes not only all kinds of spaces and tabs, but paragraph breaks and line breaks as well.
Tried this a few times back and forth, but find it hard to make the Regex find only sentences without full stops. One commonly recommended method is using (?!) to match negative lookbehind, since regex doesn’t use “not” (there is only “or”, where you use the pipe |). But using negative lookbehind on full stops only yields strange results in InDesign, or maybe I just don’t master it. So, what’s left? Well, I would use brackets.
search for:
^\u[\u\d\ -,]+$
replace with:
$0.
works for me. It will match
^:from the beginning of the line
\u:one upper case character (as this was meant to match sentences, not just single words, like short captions, I prefer having that \u up front)
[\u\d\ -,]:any upper case, lower case, digit, space, comma or dash
+: repeatedly until
$: the end of the line (but not including the paragraph break, which is a good point, and it means we can ditch the parenthesises, thanks Peter Kahrel)
If you need to match other characters, like exclamation mark, add them (with a backslash before if necessary) inside the bracket.
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.