w3c / findtext

An API spec to define how to find text in a Web document, using basic information, and return DOM ranges
14 stars 7 forks source link

Support for Regex #1

Open krusynth opened 9 years ago

krusynth commented 9 years ago

As we discussed on the list, it would be very useful to have support for Regular Expressions for many users. However, there may be significant performance problems associated with this; I assume we need evidence and some benchmarks to decide.

liamquin commented 9 years ago

On 2015-10-15 11:28, Bill Hunt wrote:

As we discussed on the list, it would be very useful to have support for Regular Expressions for many users. However, there may be significant performance problems associated with this; I assume we need evidence and some benchmarks to decide.

XPath 2 has included regular expressions for approximately 10 years. We added them because we knew that they're often needed and there was high demand from users of XPath 1 (the version still in Web browsers today), and this soft of application is a fairly typical use case.

Liam Quin, W3C XML Activity Lead; Digital publishing; HTML Accessibility

shepazu commented 9 years ago

Regex has also been supported in browsers' JavaScript engines for many years. The question is, can it be combined with the edit distance feature in an efficient way. My hope is that it can be, but I want to hear from implementers.

azaroth42 commented 9 years ago

+1 from MJS, webapps +1 from @chaals