Change regex

Change regex

dfigueiradfigueira Posts: 15Questions: 3Answers: 0

Hi guy's,

I'm working on something complex and I would like to know something. Can I change the regex from the search to accept "OR" parameters?

Thank you

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,563Questions: 26Answers: 4,995

    Take a look at the Search API example. In the Age column, for example, enable regex and disable smart search. Type 47|66. Is this what you are looking for?

    Kevin

  • dfigueiradfigueira Posts: 15Questions: 3Answers: 0

    I am using that, but can that string be changed to other type of regex's?

  • allanallan Posts: 63,844Questions: 1Answers: 10,518 Site admin

    I don't really understand your question I'm afraid. If you wanted a different type of regex, you'd just type the different regex. But I think I'm missing something!

    Allan

  • dfigueiradfigueira Posts: 15Questions: 3Answers: 0

    That's the answer then.. The string on the search will determine the kind of regex I am using on it correct?

  • allanallan Posts: 63,844Questions: 1Answers: 10,518 Site admin
    Answer ✓

    Yes. If you have told DataTables to expect a regex input, then yes, it will expect a regex string input :smile:.

    Allan

  • dfigueiradfigueira Posts: 15Questions: 3Answers: 0

    Thanks allan! Helpfull as always!

This discussion has been closed.