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?

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

1 Answer 1


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.


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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.