use of regex -- PS

spir denis.spir at gmail.com
Sun Jan 9 10:45:01 PST 2011


Hello again,

I also have an issue with the func 'match': instead of simply trying to match and fail if not found, it seems to search for a matching snippet all along the source: what a method 'find' or 'search' usually does, as opposed to 'match' precisely. Thus, i'm forced to prefix all regex patterns with '^'.
What am I missing?
(If I'm not missing anything, would be useful to have match vs find, don't you think?)

Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list