3


is there a way to perform regex query with CAML?
I have a string field (Display) composed by Name and Surname.
I have a single search input.

I wish to have these results *Display* match UserInput

How can I do it with CAML?

1
  • Display is your custom field of type string? Commented Sep 12, 2014 at 15:43

1 Answer 1

2

You can not use regex query with CAML.

The closest thing you will get to wildcard searching and CAML is using either the BeginsWith or the Contains element.

http://msdn.microsoft.com/en-us/library/ms196501.aspx

So the only thing you are missing then is an EndsWith.

In regards to dates make sure you format your dates as "yyyy-MM-dd-Thh:mm:ssZ" and all should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.