Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82275

filtering using "natural" wildcard * ?

$
0
0

Hello,

I would like to filter my table using the wildcard * like this :
- if I write 40* the table shows only the lines which BEGINS by 40
- if I write 20 the table shows only the lines which ENDS with 20
- if I write *20
the table shows only the lines which CONTAINS 20

I tried the table.columns(id_col).search(this.value, true).draw() function and I can filter using regexp, it works perfectly... But I would like to allow the "natural" use of the wildcard * as described above. Is that possible ?

Many thanks !!

T.


Viewing all articles
Browse latest Browse all 82275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>