[Issue 7260] "g" on default in std.regex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 11:09:33 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7260



--- Comment #7 from bearophile_hugs at eml.cc 2013-03-10 11:09:31 PDT ---
(In reply to comment #5)

> match(someString, pattern).all //range of all matches
> match(someString, pattern).first //only the first one
> match(someString, pattern) // using the "g" flag to decide


(In reply to comment #6)

> No overrides used would imply "use whatever the default mode is". 
> 
> How does it sound? 
> 
> Then we place nice bold warning that use of "g" option is discouraged and is
> provided only for compatibilty and is going be deprecated in future.
> 
> A year later and depending on the mood of people it gets finally deprecated and
> slowly shifted towards oblivion.

Once "g" is deprecated what is match(someString, pattern) (without all and
first) doing?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list