Search
Other DB Replacer questions
Forum

Search for period without 2 spaces afterwards.

Odin Mayland's Avatar Odin Mayland
I'm looking for grammar errors in articles. I found this example: break-ins.Exterior

I'm told there are more like that so I wanted to try DBr to fox them.

This regular expression did not work to find that instance of a period without 2 spaces afterward:
\.(?![ ]{2})

I get the error: The database query is invalid. Try changing the search.

WWhat am I going wrong?
Peter van Westen's Avatar Peter van Westen ADMIN
Working fine for me. So it is probably down to your database version/setup not allowing negative lookahead pr something else.

Try to simplify the search, like:
\.(?!  )
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
Still get the same error.

Peter van Westen's Avatar Peter van Westen ADMIN
What are you actually trying to achieve with this search?
Do you want to replace it with something?
Maybe there is a different way to go about this...
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I want to find all instances of a . without 2 spaced after it and add in the 2 spaces.
Peter van Westen's Avatar Peter van Westen ADMIN
A weird thing to want to do, but you could do:
\. ?([^ ])
Replace with:
.  \1
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
Its an older client that prefers 2 spaces after a period. If you learned to type on a typewriter, 2 spaces was the norm.

Thanks for your help.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription