Timeline for Documentation often ommits to specify which flavour of regular expression to use, so is there a default flavour that we should all be familiar with?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 14, 2011 at 19:57 | comment | added | S.Lott | @JW01: "But, for most people, there is often no choice". Stronger than that. Except in very, very weird edge cases, there is no choice. It's not "most". It's "nearly all". | |
Sep 14, 2011 at 18:41 | comment | added | FrustratedWithFormsDesigner |
@JW01: Maybe it's up to the developer if they want to use ereg or preg (which as far as I can tell is the only way to "switch flavours" in PHP), and simply saying in the document "we will use PHP" restricts the number of flavours to 2 - and after that the developer can choose.
|
|
Sep 14, 2011 at 18:28 | comment | added | JW01 | So, as a php developer (where there's been a choice of pattern for years) I find it weird that the flavour is not specified. But, for most people, there is often no choice within a particular context so its weirder to specify it. Aaaaagh. I geddit now. Cheers for that. | |
Sep 14, 2011 at 18:24 | vote | accept | JW01 | ||
Sep 14, 2011 at 18:19 | history | edited | FrustratedWithFormsDesigner | CC BY-SA 3.0 |
added 121 characters in body
|
Sep 14, 2011 at 17:08 | history | answered | FrustratedWithFormsDesigner | CC BY-SA 3.0 |