Regular Labs home page
DB Replacer
Open site navigation
DBR
DB Replacer
Pricing
Downloads
Support Forum
Release Notes
Documentation
Documentation for
Joomla 3 version
of DB Replacer
Documentation for
Joomla 4 & 5 version
of DB Replacer
Search
the forum...
Type to search...
Other DB Replacer questions
Forum
Regex to Remove WordCrap :-)
Elisa Foltyn
8 months 3 weeks ago
Elisa Foltyn
8 months 3 weeks ago
Hi! I have a working and tested regex (in regexer) to remove Word-Stuff inside articles but dbreplacer pro can't find it?
<!-- \[if gte mso 9\]>.*?<!\[endif\]-->/smg
Testing String:
<!-- [if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>/n
</o:OfficeDocumentSettings>
</xml><![endif]-->
What am i doing wrong?
thank you,
Elisa
Peter van Westen
ADMIN
8 months 3 weeks ago
Peter van Westen
ADMIN
8 months 3 weeks ago
Try:
<\!-- \[if gte mso 9\]>.*?<\!\[endif\]-->
Please post a rating at the
Joomla! Extensions Directory
Elisa Foltyn
8 months 3 weeks ago
Elisa Foltyn
8 months 3 weeks ago
Thanks, but that does not find anything either. :-/
But I tested it successfully against the existing text in regexer.
Peter van Westen
ADMIN
8 months 3 weeks ago
Peter van Westen
ADMIN
8 months 3 weeks ago
Can you give me (super) admin access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the
Joomla! Extensions Directory
Elisa Foltyn
8 months 3 weeks ago
Elisa Foltyn
8 months 3 weeks ago
Ok here it is, thank you:
Confidential information:
(hidden)
Peter van Westen
ADMIN
8 months 3 weeks ago
Peter van Westen
ADMIN
8 months 3 weeks ago
For some reason it is not handling the new lines properly. This could be down to php version and regex settings on the server.
Anyway, you should be able to do what you want with:
<\!-- \[if gte mso 9\]>([^!]*\n)*.*?<\!\[endif\]-->
Please post a rating at the
Joomla! Extensions Directory
Elisa Foltyn
8 months 3 weeks ago
Elisa Foltyn
8 months 3 weeks ago
Thank you! That looks great - doing a backup and executing 🙂 Fingers crossed!
You can only post on the extension support forum if you have an active subscription and you
log in
Buy a Pro subscription
Close site navigation
DBR
DB Replacer
DBR
DB Replacer
Pricing
Downloads
Support Forum
Release Notes
Documentation
Documentation for
Joomla 3 version
of DB Replacer
Documentation for
Joomla 4 & 5 version
of DB Replacer
Log in
General stuff
Pricing
FAQs
Blog
Support Forum
Latest Releases
Development Releases
Help Translate
About
Contact
Extensions
AMM
Advanced Module Manager
AA
Articles Anywhere
AF
Articles Field
BFL
Better Frontend Link
CC
Cache Cleaner
CFJ
CDN for Joomla!
CC
Conditional Content
CT
Content Templater
DBR
DB Replacer
EP
Email Protector
EM
Extension Manager
GEO
GeoIP
IPL
IP Login
KS
Keyboard Shortcuts
M
Modals
MA
Modules Anywhere
QI
Quick Index
R
ReReplacer
S
Sliders
S
Snippets
S
Sourcerer
T
Tabs
T&A
Tabs & Accordions
T
Tooltips
What? Nothing!
Legal stuff
Terms & Conditions
Privacy Policy & Disclaimer
Username
Forgot your username?
Password
Forgot your password?
Log in
Register