====== Regular Expressions ====== [[wp>Regular Expressions]] bieten eine flexible Möglichkeit zum //Suchen und Ersetzen von Textmuster//, sie werden in eBiss z.B. für die Erkenner-Parameter //Dateimaske// und //MatchString// benötigt um Daten zu selektieren.\\ A description of the possible parameters in eBiss can be found under [[https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference|Microsoft, Expression Language - Quick Reference]]. A page for testing regular expressions is: [[http://example.com|]]. ==== Regular expressions in eBiss ==== The following are two examples of simple RegEx applications. ^Mask ^Description ^ |//\b//|String is considered a coherent word| |//(?i)//|IgnoreCase, upper and lower case letters are ignored for whole expression| ==== samples: ==== * Matches a string ending with .edi or .ed: **.*\.edi$|.*\.ed$** * Matches a string ending with .edi/.EID or .ed/.ED: **.*\.(EDI|edi)$|.*\.(ED|ed)$** *Recognition of PRICAT_20240101_Fashion.pri with: **(?i)^PRICAT_.*_.*\.pri$** file mask : **SLSRPT//\b//**\\ MatchString : **EAN1234567891012//\b//**\\ Here the word SLSRPT is stored as a pattern for the file mask and EAN1234567891012 as a pattern for MatchString, all files with the name SLSRPT in which EAN1234567891012 are selected by the recognizer (case sensitive, so case sensitive is case sensitive). file mask: **//(?i)//SLSRPT//\b//**\\ MatchString :\\ Here the word SLSRPT is stored as a pattern for the file mask, all files with the name SLSRPT in any form of upper and lower case within the word are selected by the recognizer (Case InSensitive, upper and lower case is ignored), files with the name slsrpt or SlSrPt are also selected.