« first day (1742 days earlier)      last day (1557 days later) » 

7:18 AM
morning all
 
7:32 AM
Hello
 
hello :-)
 
7:51 AM
Hi everyone :-)
 
@zx8754 smells like it...
not suffixes though...
 
@Cath yeah not 100% :D
found it :)
 
8:07 AM
@zx8754 nice find !
 
 
1 hour later…
9:33 AM
Not sure I am clear here
How do you get this text? If my example is eliminated as per your first pattern, then you are left with this is textwhich does not have the word my...there fore how is is eliminated?? — Sotos 29 secs ago
 
@Sotos remove "my example" and "is my" in the first test case
I agree this clash somehow
I.e: hard to match is my then my example
 
yeap...
In this manner, then text should also have been deleted
 
Why ?
I think he want to remove everything that match any of the 3 sentences
I assume doing a gsub may work with backtracking
 
because they deleted my example. Then they are left with this is text. Now, if is is removed because of is my in their pattern, then shouldn't also text be removed? as per their last pattern?
This was my first attempt which I thought should have worked.. gsub(paste(my_patterns, collapse = '|'), '', dat$x)
 
"this is my example text " <= remove "is my example" (match "is my" and "my example") and you're left with this text, it doesn't match "my other text"
 
9:42 AM
hmm...ok...that makes sense
 
10:22 AM
At least the explanation is now said (not that anyone didn't guess)
 
 
2 hours later…
11:59 AM
I think it's because when the scientist heard about the virus he/she went "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa". — Mr. King yesterday
3
 
 
3 hours later…
2:55 PM
1
A: Remove part of a string based on overlapping patterns

TensibaiIf you have control over the pattern definition and can create it by hand then it can be achieved with a regex solution: > gsub("(is )?my (other text|example)?","",dat$x) [1] "this text" "and here example" " is short" The idea is to create the pattern with optional parts (the ? after...

there's probably way to avoid some looping there, I did my best to preallocate but the overall things has code smell all over it
 
3:35 PM
Yet another brilliant answer!!!
 
 
1 hour later…
4:40 PM
@Sotos omg
Hard work of posting the same "how do I aggregate" answer for years really pays off
 
@Sotos should have closed with duplicate of duplicate of duplicate of ... chain of his own posts.
2
 
4:52 PM
1
Q: Planned Maintenance for scheduled Wednesday, February 5, 2020 for Data Explorer

Taryntl;dr; Planned service interruption that will impact Stack Exchange Data Explorer (SEDE). The site will be inaccessible for up to 12 hours on February 5, 2020 starting at 2:00pm UTC. Short Version: There will be an extended service outage for up to 12 hours starting at 2pm UTC (9am US/Eastern)...

 
I don't want to come off as rude, but we really do ask that you do some research on your questions, because a lot has already been tackled on SO, including straightforward aggregation tasks like this. SO's search isn't great, but the first page of this google search gets me 7 questions on the first page that should have you covered. Those will all get you the answer you've accepted here, and plenty more — camille 29 secs ago
Really trying to not be rude, but I've already commented on the same asker to look around first because they post a lot of dupes
I don't have the ability to add more dupe targets, but there's at least 7 ready at that google link
Wait....it was already closed once and got mysteriously reopened o_O
And again. Needs a dupe target stackoverflow.com/q/59953530/5325862
 
 
2 hours later…
closed
 
8:20 PM
@camille Not mysterious.
 
@Axeman I know, I'm joking. It's never a mystery
 
@camille ;)
not sure why though, he had already answered by then
 
 
1 hour later…

« first day (1742 days earlier)      last day (1557 days later) »