Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-05-2017, 04:19 PM
macropod's Avatar
macropod macropod is offline Renaming several strings of text by their pattern Windows 7 64bit Renaming several strings of text by their pattern Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your document contains a mix of manual line breaks and paragraph breaks. Accordingly, the Find/Replace should have treated the content as a single match and have replaced the lot with:
FTEST(global.test_1)

For your attachment's content, you could use a wildcard Find/Replace, where:
Find = (global.test_[0-9]{1,})*([^13^l])
Replace = FTEST(\1)\2
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming several strings of text by their pattern Extract Data From Text file based on Pattern PRA007 Word VBA 13 11-01-2015 11:20 PM
how do I search the content of excel files for text strings soren Excel 2 03-19-2015 09:42 AM
Renaming several strings of text by their pattern VBA to copy bookmark-hyperlinks to plain text strings Marrick13 Word 2 04-29-2012 05:12 AM
Renaming slide titles ragzdaddy PowerPoint 0 12-26-2011 01:18 PM
Renaming several strings of text by their pattern update style of all strings available between two specific strings vikrantkale Word 1 03-28-2011 06:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:17 AM.


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