regex - Ruby - how to pull out that is betweet two "points"? -
this question has answer here:
- regex match characters between 2 strings 6 answers
i have text this:
... sentence one. hsjdhsd jghdsjghjdskhgjksdh kjghdsjkg sdgsdg dgds hfdhdf h fdh dfh sentence two. gdjshagjhsdga sdgjhsdkjgh adskjghdsa gs gfdgfdhfdhh ...
and need pull paragraph text between strings (actually it's sentence) sentence one. , sentence two..
could me guys, please, how pull it?
thanks
looking @ have, start , end of sentence capital letter , period, respectively. can construct regular expression pulls out text between capital letter , first period comes after.
but may contrived example; looks may have types random keys in middle of keyboard, may not characteristics of actual gibberish.
Comments
Post a Comment