Changes

Jump to: navigation, search

Gramps 5.1 Wiki Manual - Filters/he

52 bytes added, 06:34, 15 April 2022
m
Regular Expressions: translation
{{-}}
== Regular Expressions ביטויים רגילים ==
[https://wikipedia.org/wiki/Regular_expression Regular Expressions](aka ''regex'', ''regexp'', or sometimes ''rational expression'') are a quick and powerful way to describe text that matches a pattern. There are many resources (books, websites, professional training) for RegEx design and strategy.
<span id="regex_null">To find empty (blank or null) strings, <code>^.{0}$</code> looks from the start of the match <code>^</code> for any character (except newline) <code>.</code> occurring precisely zero times <code>{0}</code> before the end of the match <code>$</code></span>
=== Groups and Sets קבוצות ומערכים ===
Groups are marked by the '<code>('</code>, '<code>)</code>' metacharacters. '<code>(</code>' and '<code>)</code>' have much the same meaning as they do in mathematical expressions; they group together the expressions contained inside them, and you can repeat the contents of a group with a repeating qualifier, such as <code>*, +, ?, or {m,n}</code>. For example, <code>(ab)*</code> will match zero or more repetitions of <code>ab</code>.
You can think of groups as a list of alternatives separated by the '<code>|</code>' metacharacter, where each alternative consists of one, several or zero characters and sets as a list of alternatives where each alternative is a single character.
=== Examples דוגמאות ===
* '''<code>^B.*ship$</code>''' - matches all text that starts with a '<code>B</code>', followed by anything, ending with '<code>ship</code>'.
* '''subgroup3''' is '''(x|t|d|lt)''' = group matching '''x''', '''t''', '''d''' or '''lt'''
====Testing regular expressionsבדיקת ביטויים רגילים====
Regular Expression testers can be found online through Google. https://www.regexr.com/ is simple and convenient
{{Man warn|Regular Expression 'dialect' noted and Repaired|In Gramps 5.1, the sidebar filter inappropriately evaluated parameters containing spaces... attempting to re-interpret a single Regular Expression as a sequence of separate expressions. The Gramps 5.1.1 resolution for Bug {{Bug|0011321}} handles Regular Expressions more literally.}}
=== See Also לקריאה נוספת ===
Regular expressions have been in wide use across the computer industry since the 1950s. But they are "expert tools" designed for power and efficiency rather than intuitiveness. As a result, many resources have been developed on the web.
3,019
edits

Navigation menu