main panel home
user guide useful linx send feedback
User Guide Useful Links Send feedback!

Target Text Extractor

This tool scans the provided input for a pre-defined character pattern, line by line, and outputs the matches (or whole positive or negative lines).
Text patterns can be defined in following ways:

The use and purpose of the Target Text Extractor is demonstrated in these examples: example 1, example 2

To perform other list operations (merging, subtracting, etc.), use this tool.

preceded by
or
text to extract
followed by
or

Perform a case-sensitive search. Don't report negative lines. Output with line numbers.
Include search patterns in the output. Output whole negative lines instead of matches.
Find only the first match in each line.
Find all matches in each line and separate them with in the output.
INPUT
?
Keep the break-after-character(s) Remove them.
OUTPUT
separated by




REGULAR EXPRESSIONS

Metacharacters

Metacharacters are characters with a special meaning:

. Find a single character, except newline or line terminator
\w Find a word character (a letter, a digit or an underscore)
\W Find a non-word character
\d Find a digit
\D Find a non-digit character
\s Find a whitespace character
\S Find a non-whitespace character
\b Find a match at the beginning/end of a word
\B Find a match not at the beginning/end of a word
\t Find a tab character


Brackets

Brackets are used to find a range of characters:

[abc] Find any character between the brackets
[^abc] Find any character NOT between the brackets
[0-4] Find any digit between the brackets
[^3-6] Find any digit NOT between the brackets
(x|y) Find any of the alternatives specified


Quantifiers

n+ Matches any string that contains one or more n
n* Matches any string that contains zero or more n's
n? Matches any string that contains zero or one n
n{X} Matches any string that contains a sequence of X n's
n{X,Y} Matches any string that contains a sequence of X to Y n's
n{X,} Matches any string that contains a sequence of at least X n's
n$ Matches any string with n at the end of it
^n Matches any string with n at the beginning of it
?=n Matches any string that is followed by a specific string n
?!n Matches any string that is not followed by a specific string n

twlink

info@molbiotools.com

© 2016 Vladimír Čermák. All rights reserved.