[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Regular Expression

Does anyone know what the regular expression be in microsoft word to select a whole paragraph?  
Lets say I have the word Apple.  How would you select the whole paragraph the word Apple exists ?

Thanks
Mike
0
RedRado03
Asked:
RedRado03
  • 2
  • 2
  • 2
  • +3
2 Solutions
 
Kim RyanIT ConsultantCommented:
So long as there are no carriage returns in your paragraph, you should just be able to use this
.* Apple .*
0
 
Leo EikelmanCommented:
how about

:%s/\p\+apple\p\

Leo
0
 
RedRado03Author Commented:
I'm sorry.  I couldn't get either one of those to work.  Am I doing something wrong?  I just copied that into the find in word with the wildcard option checked.  It did not return anything.

Mike
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Kim RyanIT ConsultantCommented:
Are you sure the regular expression option is enabled? (do they mean reg exp when they say wild card?)
0
 
RedRado03Author Commented:
Regular expression option?  Is this a actual option in WORD or do you just mean having the use wild card option.  Which I do.
0
 
VovinECommented:
Word does not support regular expression matching AFAIK.
0
 
arch7606Commented:
.*?apple.*?
0
 
harris_cCommented:
Try:
http://office.microsoft.com/en-au/assistance/ha010873051033.aspx

http://office.microsoft.com/en-us/assistance/HA010873041033.aspx?mode=print
NOTE:   5.  Select Paragraph marks as the text separator, and then click OK.

using arch7606's    .*?apple.*?


hec",)


0
 
harris_cCommented:
split?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now