Set the scope for find and replace
You can replace a word in any part of a component, including text between element tags, XML element names and values, processing instructions, and comments. You can also set the scope to search in every part of a component, both code and text.
Tips and tricks
You must have specific permissions to use Find and Replace.
- If you are an administrator, read Allow non-Admin users to find and replace text.
- If you are an administrator or have permissions, you can search for text in one or more components without opening them.
- You can select a non-binary, unlocked file from the Components browser to use the Selected Components panel option for
Find/Replace components.
- You can also go to the Folders pane and use the right-click menu on a folder to access a Find/Replace components option.
If the folder you select contains sub-folders, those are not included in the search by default. If you want to include them, on the Find/Replace components screen, select the Include Subfolders option.
- You can select a non-binary, unlocked file from the Components browser to use the Selected Components panel option for
- If you choose a component that's locked (
by you,
by another user,
it's approved,
approved and signed, or
by the system) Inspire skips it and adds a warning to your notification.
- If you choose a binary component, Inspire skips it and adds a warning to your notification.
Set the search scope
When using Find and Replace, you can choose what part of a topic you want to search in:
Now, when you use Find and replace with the scope of All, there are two new options:
- Regular Expressions: Lets you build regular expressions for wild card search and replace on characters.
- For example, search for \/>(\s+)<b([^>]+)>WARNING<\/> to find a match using regular expressions.
- You can lookup RegEx examples to build expressions at: https://regex101.com/
- Ignore Whitespace: Ignores whitespaces between tags when searching.
- For example, when searching for /> <b in a document with Ignore Whitespace checked, the white space is ignored and the match is found.
Case sensitive searches
- You can also choose whether your search is case sensitive or not.
- If you select the Case sensitive option, you must search for a word exactly as it appears in the component.
- For example, you want to know how many times "Greek" appears in all components in a folder.
- If you search for "greek" select the Case sensitive option:
- You will only get matches for "greek"
- Those results will not include how many times the word "Greek" appears