Regular Expression (Concept): Difference between revisions

From Grooper Wiki
No edit summary
No edit summary
Line 1: Line 1:
Regular expression (regex) is a way of finding information in a block of text.  Using a standard syntax, a sequential line of characters is written to match a line of characters in the text.  This line of characters written to match text is called a "pattern" and can potentially return multiple lines of text, not just one value (It will return any line of text that matches the pattern).  This syntax can be used to match very specific strings of characters or written more generally to match several permutations of the pattern.  For example, one can write a regular expression pattern to match a specific date or any date in a text block.
<onlyinclude>
<blockquote style="font-size:14pt">
Regular expression (or "regex") is a way of finding information in a block of text.  It is the primary method Grooper extracts and returns data from documents.
</blockquote>
 
Using a standard syntax, a sequential line of characters is written to match a string of characters in the text.  This line of characters written to match text is called a "pattern" and can potentially return multiple strings, not just one valueIt will return ''any'' string of text matching the pattern.   
 
This syntax can be used to match very specific strings of characters or written more generally to match several permutations of the pattern.  For example, one can write a regular expression pattern to match a specific date or any date in a text block.
</onlyinclude>

Revision as of 15:55, 24 November 2020

Regular expression (or "regex") is a way of finding information in a block of text. It is the primary method Grooper extracts and returns data from documents.

Using a standard syntax, a sequential line of characters is written to match a string of characters in the text. This line of characters written to match text is called a "pattern" and can potentially return multiple strings, not just one value. It will return any string of text matching the pattern.

This syntax can be used to match very specific strings of characters or written more generally to match several permutations of the pattern. For example, one can write a regular expression pattern to match a specific date or any date in a text block.