Ejemplo n.º 1
0
        public async Task Regex()
        {
            LCQuery <LCObject> query = new LCQuery <LCObject>("Hello");

            query.WhereMatches("stringValue", "^HEllo.*", modifiers: "i");
            ReadOnlyCollection <LCObject> results = await query.Find();

            Assert.Greater(results.Count, 0);
            foreach (LCObject item in results)
            {
                string str = item["stringValue"] as string;
                Assert.IsTrue(str.StartsWith("hello"));
            }
        }