Regex search and | character

Regex search and | character

trongarttrongart Posts: 222Questions: 51Answers: 0
edited May 2023 in Free community support

In this example, I have regex search and I use the | character to search for multiple items:

For example airi|ashton returns results for both airi and ahston.

How can I change this to the comma character , instead of | so I could enter airi,ashton into search and get results for both?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    Answer ✓

    There is no option in regex to change the character operations. And DataTables attempt to do a translation between one form and another.

    If you wanted to, you could get the value from a custom input and then convert it into regex, and apply that to DataTables using search().

    Allan

Sign In or Register to comment.