Regex pattern
Posted: 27 Aug 2017 07:06
Hi
Suppose I have the following string:
"There were more than 1000 people present at the place where the beautiful actress' visit was scheduled, though many had left the spot by the time the actress arrived."
Out of this entire text, how can I extract a part of it?
Say, how can I retrieve the text from 'more' to 'left' i.e. "more than 1000 people present at the place where the beautiful actress' visit was scheduled, though many had left"?
Can it be accomplished using the function findAll? Also guide me regarding the regex pattern that'll be helpful in this situation.
Suppose I have the following string:
"There were more than 1000 people present at the place where the beautiful actress' visit was scheduled, though many had left the spot by the time the actress arrived."
Out of this entire text, how can I extract a part of it?
Say, how can I retrieve the text from 'more' to 'left' i.e. "more than 1000 people present at the place where the beautiful actress' visit was scheduled, though many had left"?
Can it be accomplished using the function findAll? Also guide me regarding the regex pattern that'll be helpful in this situation.