Version 8.0.1 |
The regular expressions that you can use in the search and replace dialogs and in places like the 'Feature' attributes, the 'Primary index' of an 'Item' node or in checks all use standard Java regexp syntax.
8.0+ Before QF-Test version 3.1 the default was the GNU regexp package. After that it was available as an option. In QF-Test 8.0 the GNU Regexp package was removed from QF-Test.
Detailed regexp documentation with links to further information and even a whole book
about regular expressions are provided in the Java documentation for the class
java.util.regex.Pattern
at http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html.
It's also worth to have a look at the Wikipedia article
about regular expressions.
Following is a short summary of the basics:
$n
in the replacement string expands to the
part of the original value matched by the nth
group. Example: To change the extension of file names starting
with /tmp/
from .foo
to
.bar
, search for (/tmp/.*)\.foo
and
replace with $1.bar
.
Examples:
.*
describes a sequence of arbitrary characters, which is optional..+
describes a sequence of arbitrary characters, but there must be at least
one character, i.e. some mandatory characters.[0-9]
describes one arbitrary cipher.[0-9]+
describes a sequence of arbitrary ciphers, but there must
be at least one cipher.[0-9]{1,3}
describes a sequence of arbitrary ciphers, but there must
be at least one cipher and at maximum three ciphers.'.*tree.*'
.
'(?s).*'
'(.*)tree(.*)'
to search and $1node$2
to
replace. In the replace dialog simply replace tree
with node
and disable the "Match whole string" check
box to achieve the same effect.
'names?'
'(tree|node)'
4.0+ QF-Test allows you to use the context menu item »Escape text for regular expressions« on all attributes which allow regular expressions in order to escape special characters of regular expressions correctly with '\'.
Last update: 9/10/2024 Copyright © 1999-2024 Quality First Software GmbH |
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.