Giter Site home page Giter Site logo

Comments (13)

ghbondar avatar ghbondar commented on September 20, 2024

Perhaps try using the double line-breaks /n/n ?

from dhclass-hub.

ghbondar avatar ghbondar commented on September 20, 2024

... for the paragraphs that don't begin with a square bracket, that is. Most of the paragraphs do begin with a square bracket.

from dhclass-hub.

CodyKarch avatar CodyKarch commented on September 20, 2024

That helped me pick up square bracket paragraphs, but I can't seem to grab paragraphs that don't have brackets.

from dhclass-hub.

ghbondar avatar ghbondar commented on September 20, 2024

Did you try searching for a double line-break? \n\n
Perhaps a double line break following a punctuation mark and before a word:
.\n\n\w

from dhclass-hub.

CodyKarch avatar CodyKarch commented on September 20, 2024

I was able to capture all the paragraphs with \n\n[A-Z]\w|\n\n[ but my problem now is.. that when I try to place in the tags, all the paragraphs smash together and I loose some of the alphanumerics starting my find Regex.

from dhclass-hub.

CodyKarch avatar CodyKarch commented on September 20, 2024

Excuse me: \n\n[A-Z]\w|\n\n\[

from dhclass-hub.

CodyKarch avatar CodyKarch commented on September 20, 2024

OMG. There is a slash before the end square bracket, but it won't appear in these comments.

from dhclass-hub.

ghbondar avatar ghbondar commented on September 20, 2024

If you are losing the break between the paragraphs, it is because you have them selected when you hit replace. Make sure you either add them back or preserve them when you replace.

from dhclass-hub.

ebeshero avatar ebeshero commented on September 20, 2024

@CodyKarch Did you figure out how to preserve space between the paragraphs? Think about how you create your capturing group(s)! Yes, in markdown in the GitHub comments, we need to designate literal code characters a special way, in between "tick marks": It's the top left key on your keyboard under the Esc key: **** You want to wrap any code or weird characters inside weirdStuff Here!` tick marks literally like this:

weirdStuff Here!
Type one tick mark before and one after each bit of code.

from dhclass-hub.

CodyKarch avatar CodyKarch commented on September 20, 2024

I was able to keep the breaks between paragraphs, but I overlooked the text and noticed that there were interlocking tags. Thus, I'm going to try and find the beginning and the end of the paragraphs, instead of simply the beginning.

from dhclass-hub.

brookestewart avatar brookestewart commented on September 20, 2024

I'm not able to keep the spacing between the paragraphs. Nothing I try seems to work.

from dhclass-hub.

ebeshero avatar ebeshero commented on September 20, 2024

If you are designating spacing with \n or \n\n that should be something you can use in a capturing group. But the numerical repetition indicators in curly braces don't work, so I think you won't be able to put \n{3} in a replace because you'll get literal characters in your replace. \n\n should work though.

from dhclass-hub.

ebeshero avatar ebeshero commented on September 20, 2024

The same kinds of things you did with the Blithedale exercise will work here too!

from dhclass-hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.