Jump to content

Please read the Forum Rules before posting.

Photo

Find & Replace


  • Please log in to reply
15 replies to this topic

#1 DSaw

DSaw

    Resource Builder

  • Members (T)
  • PipPipPipPipPip
  • 1,131 posts
  • LocationEast Coast
Offline

Posted 01 July 2012 - 10:47 AM

Using find and replace (or a macro) how would I do the following


Change this

Mat 1:1
Text text text text text text text text text text text text text text

Mat 1:2
Text text text text text text text text text text text text text text

To this


Mat 1:1 Text text text text text text text text text text text text text text

Mat 1:2 Text text text text text text text text text text text text text text



Thank You

Edited by DSaw, 01 July 2012 - 10:48 AM.

May God change our hearts to what the truth is

2Ti_2:15 Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.

Rom_9:16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy.

2Ti 2:24-25  And the servant of the Lord must not strive; but be gentle unto all men, apt to teach, patient, In meekness instructing those that oppose themselves; if God peradventure will give them repentance to the acknowledging of the truth; 
 

 

 


#2 pfpeller

pfpeller

    Moderator

  • Moderators
  • 1,112 posts
  • LocationWA
Offline

Posted 01 July 2012 - 11:27 AM

In M.S. Word with "use wildcards" selected

Search
<([A-z]{1,4})>( )([0-9]{1,3})(:)([0-9]{1,3})(^l)

Repalce
\1\2\3\4\5

Make sure there is a space after the \5 in the replace command

I tried this on the small amount of text above pasted into MS word and it seemed to work fine.

Please see attachment to get the search command without the :)

Attached File  Clipboard01.png   246.27K   25 downloads

#3 DSaw

DSaw

    Resource Builder

  • Members (T)
  • PipPipPipPipPip
  • 1,131 posts
  • LocationEast Coast
Offline

Posted 01 July 2012 - 11:51 AM

Thanks but It does not seem to work for me I copies the search & replace filled in the smiley face and made sure there was a space after the 5 but would not find anything

I created a macro but its not as fast as search and replace

May God change our hearts to what the truth is

2Ti_2:15 Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.

Rom_9:16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy.

2Ti 2:24-25  And the servant of the Lord must not strive; but be gentle unto all men, apt to teach, patient, In meekness instructing those that oppose themselves; if God peradventure will give them repentance to the acknowledging of the truth; 
 

 

 


#4 Bradley S. Cobb

Bradley S. Cobb

    Christian

  • Members (T)
  • PipPipPipPipPip
  • 924 posts
  • LocationWestern Arkansas
Offline

Posted 01 July 2012 - 12:19 PM

replace ([0-9]{1,2}\:[0-9]{1,2})^13
with \1 (make sure you have a space after the \1)

If that doesn't work, change the ^13 to ^l (lower case L there) and everything else the same.

-Brad

Edited by Bradley S. Cobb, 01 July 2012 - 12:20 PM.

Head Writer at The Cobb Six.

#5 Josh Bond

Josh Bond

    Administrator

  • Administrators
  • PipPipPipPipPip
  • 2,882 posts
  • LocationGallatin, TN
Offline

Posted 01 July 2012 - 01:47 PM

Thanks but It does not seem to work for me I copies the search & replace filled in the smiley face and made sure there was a space after the 5 but would not find anything

I created a macro but its not as fast as search and replace


I edited Peter's post to turn off emiticons which are on by default and show the smiley faces with certain character combinations. Should copy better.

#6 pfpeller

pfpeller

    Moderator

  • Moderators
  • 1,112 posts
  • LocationWA
Offline

Posted 01 July 2012 - 02:24 PM

I edited Peter's post to turn off emiticons which are on by default and show the smiley faces with certain character combinations. Should copy better.


Thanks Josh,
I just edited again because I think there was en extra space in the search command.


Thanks but It does not seem to work for me I copies the search & replace filled in the smiley face and made sure there was a space after the 5 but would not find anything
I created a macro but its not as fast as search and replace


DSaw,

The above works for me now when I paste it in. I just tested it.
It sounds like you have it figured out with a macro though.

Bradley's looks simpler though I have not tested it, I often do things the hard way :).

Blessings,
Peter

#7 DSaw

DSaw

    Resource Builder

  • Members (T)
  • PipPipPipPipPip
  • 1,131 posts
  • LocationEast Coast
Offline

Posted 01 July 2012 - 02:25 PM

Both did not work even the edit I copied and pasted; wildcard is on I attached an RTF of mark from the bible

Attached File  search.PNG   111.8K   10 downloads

Attached Files


Edited by DSaw, 01 July 2012 - 02:35 PM.

May God change our hearts to what the truth is

2Ti_2:15 Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.

Rom_9:16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy.

2Ti 2:24-25  And the servant of the Lord must not strive; but be gentle unto all men, apt to teach, patient, In meekness instructing those that oppose themselves; if God peradventure will give them repentance to the acknowledging of the truth; 
 

 

 


#8 pfpeller

pfpeller

    Moderator

  • Moderators
  • 1,112 posts
  • LocationWA
Offline

Posted 01 July 2012 - 02:30 PM

Both did not work I copied and pasted; wildcard is on I attached an RTF of mark from the bible

I didnt try your edited post


Well,
Those are paragraph marks and not line marks.

I tried to do it in the attachment. Did that work?

Search
<([A-z]{1,4})>( )([0-9]{1,3})( :)([0-9]{1,3})(^13)

Repalce
\1\2\3\4\5


Josh,
how do you turn off emoticons?

Attached Files



#9 pfpeller

pfpeller

    Moderator

  • Moderators
  • 1,112 posts
  • LocationWA
Offline

Posted 01 July 2012 - 02:43 PM

Both did not work even the edit I copied and pasted; wildcard is on I attached an RTF of mark from the bible

Attached File  search.PNG   111.8K   10 downloads


Need ^13 instead of ^l

See attachment in my post above, I ran my search and replace on it and I think it worked.
Blessings,
Peter

#10 Bradley S. Cobb

Bradley S. Cobb

    Christian

  • Members (T)
  • PipPipPipPipPip
  • 924 posts
  • LocationWestern Arkansas
Offline

Posted 01 July 2012 - 02:51 PM

What do the "<" and ">" do in the search field? That's what I'm not getting.
Head Writer at The Cobb Six.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs