Keyword search: 

Using regular expressions

7/29/2009 12:55 PM
You can subscribe to this wiki article using an RSS feed reader.

Problem:
How do I use regular expressions in FRP excludes/includes?


Solution:
FRP Advanced job features Exclude/Include suppor the user of regular expressions. In order to use regular expressions, you must set 2s.filter.regex=true in the s2s.properties file located in lib. (Note: You must stop all FRP services prior to changing the s2s.properties file)

COMMON REGULAR EXPRESSIO OPERATORS


The `.' (period) character represents a match any operator. For example, `a.b' matches any three-character string beginning with `a' and ending with `b'.

`*' represents the match zero or more operator by repeating the smallest possible preceding regular expression as many times as necessary (including zero) to match the pattern. For example, `o*' matches any string made up of zero or more `o's, therefore `fo*' has a repeating `o', not a repeating `fo'. `fo*' matches `f', `fo', `foo' etc.

This `+' operator is similar to `*' except that it repeats the preceding regular expression at least once. For example, `ca+r' matches, `car' and `caaaar', but not `cr'.

The `?' operator is similar to the `*' operator except that it repeats the preceding regular expression once or not at all. For example, `ca?r' matches both `car' and `cr', but nothing else.

For more detailed information, please visit the website: http://www.ugcs.caltech.edu/info/regex/regex_toc.html

Tags:
Home: WIKI - Knowledge Base Index What's new: Recently changed articles