Regular expression syntax: Difference between revisions
Jump to navigation
Jump to search
(sorry, big rewrite.) |
|||
Line 1: | Line 1: | ||
The [[Expression_Language#Regex | Regex()]] function in Media Center's expression language supporting regular expression pattern matching is implemented using external regular expression libraries. |
|||
Media Center's expression language [[Expression_Language#Regex.28.E2.80.A6.29:_Regular_expression_pattern_matching_and_capture|regex() function]] employs regular expressions (regexs). |
|||
== Media Center 19 == |
== Media Center 19 == |
||
In Media Center 19, the [[Expression_Language#Regex | Regex()]] function is implemented using the Boost C++ library, version 1.54. While Boost supports several flavors of regular expressions, the mode enabled in Media Center is the [http://www.boost.org/doc/libs/1_54_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html Perl Regular Expression Syntax]. |
|||
(The regex implementation is from the Boost C++ library, version 1.54.) |
|||
== Media Center 18 and earlier == |
== Media Center 18 and earlier == |
||
In Media Center 18 and earlier, the [[Expression_Language#Regex | Regex()]] function was implemented using the [http://msdn.microsoft.com/en-us/library/bb982727(v=vs.100).aspx Microsoft 2010 TR1 engine]. |
|||
The TR1 implementation is reported to be based on the Boost library [http://en.wikipedia.org/wiki/C%2B%2B_Technical_Report_1#Regular_expressions here]. |
|||
It is supposed that Media Center versions before 2010 used the Standard C++ Library TR1 engine from earlier versions of Visual Studio. Failure of compatibility between different version of this engine have been reported, e.g. [http://connect.microsoft.com/VisualStudio/feedback/details/558339 here]. |
Revision as of 22:19, 22 January 2014
The Regex() function in Media Center's expression language supporting regular expression pattern matching is implemented using external regular expression libraries.
Media Center 19
In Media Center 19, the Regex() function is implemented using the Boost C++ library, version 1.54. While Boost supports several flavors of regular expressions, the mode enabled in Media Center is the Perl Regular Expression Syntax.
Media Center 18 and earlier
In Media Center 18 and earlier, the Regex() function was implemented using the Microsoft 2010 TR1 engine.