Skip to main content
Barb Binder
Community Expert
Community Expert
Dec 7, 2022 5:18 PM UTC
Answered

RegEx for hard return

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 is closed to new replies. Start a new post to keep the conversation going.
    Winfried RengCorrect answer
    Community Expert
    Dec 7, 2022 6:05 PM UTC

    6 replies

    Barb Binder
    Community Expert
    Community Expert
    Dec 7, 2022 8:04 PM UTC

    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

    Translate
    ~Barb at Rocky Mountain Training
    Barb Binder
    Community Expert
    Community Expert
    Dec 7, 2022 7:54 PM UTC

    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

    Translate
    ~Barb at Rocky Mountain Training
    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    Dec 7, 2022 6:33 PM UTC

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

    Have you tried any of those?

    Translate
    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Community Expert
    Dec 7, 2022 6:04 PM UTC

    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

    Translate
    Winfried RengCommunity ExpertCorrect answer
    Community Expert
    Dec 7, 2022 6:05 PM UTC
    Bob_Niland
    Community Expert
    Community Expert
    Dec 7, 2022 5:45 PM UTC

    Does searching for:
    \x0a

    find anything useful?

    Translate