Consulting

Results 1 to 6 of 6

Thread: Regular Expression Help

  1. #1
    VBAX Regular
    Joined
    Sep 2014
    Posts
    27
    Location

    Regular Expression Help

    Hi,
    Shall i have a regular expression for MS WORD which will help me to find lines ending with Paragraph Marks.

  2. #2
    Search for ^p

    See http://www.gmayor.com/replace_using_wildcards.htm for a lot more information on searching in Word.
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    VBAX Regular
    Joined
    Sep 2014
    Posts
    27
    Location
    Hi, This one will search for paragraph mark. I want to find only those paragraph marks which are at end of line.

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,724
    Location
    Quote Originally Posted by vpsekhar View Post
    Hi, This one will search for paragraph mark. I want to find only those paragraph marks which are at end of line.

    How do you define the 'End of Line'?

    Since you can resize the screen and change the font for example, the representation of the text on the page or the screen will flow and change.

    Might be better if you attached a sample or screen shot
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  5. #5
    Paragraph marks are always at the 'end of a line'. They end the paragraph and start a new line.
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  6. #6
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,335
    Location
    Maybe you are looking for line breaks. In that case use ^l
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •