Difference between revisions of "Regular expression syntax"

From JRiverWiki
Jump to: navigation, search
(Media Center 19)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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).
+
The [[Regex()]] function in Media Center's expression language supporting regular expression pattern matching is implemented using external regular expression libraries.
  
== Media Center 19 ==
+
== Media Center 19 and Later ==
The regex syntax is the Perl Regular Expression Syntax, documented [http://www.boost.org/doc/libs/1_54_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html here].
+
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 [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 ==
 +
In Media Center 18 and earlier, the [[Regex()]] function was implemented using the [http://msdn.microsoft.com/en-us/library/bb982727(v=vs.100).aspx Microsoft 2010 TR1 engine].
  
== Media Center 18 and earlier ==
+
[[Category:Expression Functions]]
The regex implementation has been [http://wiki.jriver.com/index.php?title=Expression_Language&oldid=9164#Regex.28.E2.80.A6.29:_Regular_expression_pattern_matching_and_capture reported] to be the Microsoft 2010 TR1 engine. This is presumed to be a reference to the Microsoft Visual Studio 2010 Standard C++ Library TR1 engine. Programmers' documentation is [http://msdn.microsoft.com/en-us/library/bb982727(v=vs.100).aspx here].
 
 
 
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].
 

Latest revision as of 09:59, 1 February 2016

The Regex() function in Media Center's expression language supporting regular expression pattern matching is implemented using external regular expression libraries.

Media Center 19 and Later

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.