Timeline for Don't google "google"
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2017 at 18:24 | history | edited | daniero | CC BY-SA 3.0 |
added 398 characters in body
|
Sep 28, 2015 at 19:01 | comment | added | daniero | @histocrat but I don't think you can google strings with multiple lines ;) | |
Sep 28, 2015 at 18:57 | history | edited | daniero | CC BY-SA 3.0 |
added 469 characters in body
|
Sep 28, 2015 at 18:30 | comment | added | histocrat |
Breaks if the input string has multiple lines and contains google on its own line. I think /\A(?!google\Z).*/m fixes it (at the cost of three bytes, though). ^ and $ match the beginning and end of lines, while \A and \Z match the beginning and end of the string as a whole.
|
|
Sep 28, 2015 at 18:07 | comment | added | daniero |
@Borsunho I have to admit I just "brute forced" the regex untill I got the result that I wanted :) I think the .* at the end is what makes it work.
|
|
Sep 28, 2015 at 18:00 | comment | added | Borsunho |
Neat, I couldn't get this to work ( I didn't came up with leaving ^ outside the matchgroup).
|
|
Sep 28, 2015 at 17:55 | history | answered | daniero | CC BY-SA 3.0 |