Talk:The OU PMatch algorithm: Difference between revisions
From MoodleDocs
Oleg Sychev (talk | contribs) (word dividers default) |
No edit summary |
||
Line 2: | Line 2: | ||
I don't understand why it default to \s, not \W. PCRE word breaking assertions use \W to find word break.--[[User:Oleg Sychev|Oleg Sychev]] 20:31, 12 December 2010 (UTC) | I don't understand why it default to \s, not \W. PCRE word breaking assertions use \W to find word break.--[[User:Oleg Sychev|Oleg Sychev]] 20:31, 12 December 2010 (UTC) | ||
:Mainly because that is backwards compatible with the previous implementation of Pmatch. And pmatch has evolved over the years based on what is most useful. Anyway, that is only a default. |
Latest revision as of 09:37, 13 December 2010
word dividers default
I don't understand why it default to \s, not \W. PCRE word breaking assertions use \W to find word break.--Oleg Sychev 20:31, 12 December 2010 (UTC)
- Mainly because that is backwards compatible with the previous implementation of Pmatch. And pmatch has evolved over the years based on what is most useful. Anyway, that is only a default.