Skip to main content
Barb Binder
Community Expert
Community Expert
December 7, 2022
Answered

RegEx for hard return

  • December 7, 2022
  • 5 replies
  • 611 views

Hi Fm Friends:

 

I am looking for a space followed by (Former and want to add a hard return in front of the space. (Or after, don't really care.) My cursor stops in front of the space but \r gives me a line break and not a paragraph break. It works correctly in InDesign but not in FrameMaker. What am I missing? 

 

~Barb 

 

    This topic has been closed for replies.
    Correct answer Winfried Reng

    And here is the post from which I copy this information.

    https://community.adobe.com/t5/framemaker-discussions/find-non-breaking-space-with-regular-expression/m-p/12361052

    5 replies

    Barb Binder
    Community Expert
    Community Expert
    December 7, 2022

    Ok, so \x0a is the final answer for a ¶ (\x09 is a line break, same as \r)

     

    And now I see them all listed in the character set list. Again, thank you all!

     

    ~Barb

    ~Barb at Rocky Mountain Training
    Barb Binder
    Community Expert
    Community Expert
    December 7, 2022

    Thank you, @Winfried Reng@Bob_Niland and @Matt-Tech Comm Tools. I am writing this down in a safe place because I'm now thinking I asked a similar question (if not the exact same question) last year. 🙄

     

    EDIT: I needed a tab last year. \x08, FWIW. 

     

    ~Barb

    ~Barb at Rocky Mountain Training
    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    December 7, 2022

    I generally have luck with regex boards on reddit, etc.

    Have you tried any of those?

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Community Expert
    December 7, 2022

    In another post I had asked for the code for non-breaking spaces. There Rick said that I had to use the Windows character code.

    This means for you:

    \x09

    https://help.adobe.com/en_US/framemaker/using/index.html#t=using-framemaker%2Ffm-17%2Fuser-guide%2Fcharacter-sets.html

    Good luck

    Winfried RengCommunity ExpertCorrect answer
    Community Expert
    December 7, 2022
    Bob_Niland
    Community Expert
    Community Expert
    December 7, 2022

    Does searching for:
    \x0a

    find anything useful?