This is the documentation space for the SRL Query Language. We're trying our best to give you a complete overview about what's possible. Please read through these basic syntax rules first:
SRL is case insensitive. Thus,
LITERALLY "test"is exactly the same as
literally "test". But please beware, that everything inside a string is in fact case sensitive.
LITERALLY "TEST"does NOT equal
- The comma separating statements is completely optional and has no effect whatsoever. In fact, it gets removed before interpreting. But since it helps the human eye to distinct between different statements, it's allowed.
- Strings are interpreted as literal characters and will be escaped. They can either be defined using 'single' or "double" quotation marks. Escaping them using a backslash is possible as well.
- Parentheses should only be used when building a sub-query, for example while using a capture or non-capture group to, for example, apply a quantifier to multiple items.
- Comments are currently not supported and may be implemented in the future.
In the navigation on the left you can find a few main groups in which all commands can be divided. A short explanation for each group would be:
Characters are everything that matches the string directly. This group contains
- Quantifiers are quantifying the statement before. They indicate how often something is allowed to occur.
- Groups basically group characters and quantifiers. They are used for applying quantifiers to a whole pattern or to capture and return some specific expressions. Everything in between these groups can be seen as a sub-query.
- Lookarounds allow a more complex way of dealing with groups and matches. That way you can define a group to match only if a certain pattern will apply.
Flags apply to the complete query and indicate a specific mode. For instance, setting
case insensitiveflag, will tell the whole query to ignore case mismatches.
- Anchors are pretty easy. They define whether a string must start or end now.