New to v126.96.36.199, updated v188.8.131.52
The Global Find and Replace dialog allows you to search and replace text within the currently opened projects topic text, derived media captions, the databases media library captions and glossary terms.
Match whole words only
This options will cause the search function only to return matches where the search criteria is clear of other characters. That is the search criteria doesn’t form part of another word.
For example, if we searched on the following word ‘wiki’ with the ‘Match whole word only’ option selected. The following would apply:
- “The wiki was a useful source of information.” – This instance of ‘wiki’ would be returned in the search results as it has no adjacent characters.
- “The following comments were found in the wiki.” – This instance of ‘wiki’ would not be returned as found due to the full stop to the right.
- “The wikipedia website is very popular.” – This instance of ‘wiki’ would not be returned as found due as it forms part of a word.
- “The wiki was a useful source of information.” – This instance of ‘wiki’ would not be returned as found due to the surrounding bold tags.
The ‘Match whole word only’ option can be used in conjunction with the other search options.
This option allows you perform case-sensitive searches.
For example using ‘Wiki’ as our search criteria:
- “The Wiki was a useful source of information.” – This instance of ‘Wiki’ would be returned in the search results.
- “The wiki was a useful source of information.” – This instance of ‘wiki’ would be not returned in the search results.
‘Match case’ can be used in conjunction with other search options.
RegEx (Regular Expressions)
A regular expression is a special search string for describing a search pattern. You may already be familiar with wildcard notation such as ‘*.doc’ or ‘*.*’ etc when using your file manager. A regular expression is a much more sophisticated way of defining powerful search patterns. For example, if you wanted to remove all table tags from your HTML while leaving the table content intact you could use a regular expression like:
Don’t worry if you don’t understand the above example, it was to illustrate the power of regular expressions. Fact Sheet Fusion uses the .NET Framework library for regular expressions, each implementation of regular expressions is slightly different between programming languages, so when developing your own regular expressions or using others you might find on the Internet check that it will work for .NET.
This help is not a regular expression guide. For more information on regular expression patterns supported by Fact Sheet Fusion see Microsoft’s Regular Expression Language – Quick reference.
Below are some regular expressions you may find useful when dealing with HTML based content in Fact Sheet Fusion, especially if you have copied and pasted the content from another source or imported it from MS Word.
If you have font tags within your content overriding your template output you can easily find all font tags by:
If you have hard-wired styles within tags overriding your template output you can use:
If you want to remove all span tags from your content use:
If you want to remove all embedded image tags from your content use:
Use the regular expression option to find content, via the global search and replace dialog, and use the replace option textbox to replace the matching content with whatever replacement text you prefer. Or replace matches with nothing (empty), which will remove the matched content from the topic or caption.
This option will include all entity topic text in the search.
Derived Media Captions
This option will include all media that has been attached to entities or entity topics that have derived captions
Library Media Captions
This option will include all library media captions, regardless if the media item has been attached within the project.
Important Note: Library media can be linked to objects (e.g. Entities & Topics) in one or more projects within the selected Fusion database. If you update a Library media caption this change will affect all projects where this item was attached. Using this option (by itself) will not include any derived media captions.
This option will include all Glossary Terms in the search.
The find text (text to be searched for) can include any combination of characters, including HTML tags, spaces, alphanumerics.
Only text within the selected search filters that matches this will be returned in the search results panel.
This is text, which can include HTML tags, spaces, alphanumerics or nothing, that you wish to replace the found text.
Note: If the replace text criteria is left blank, and a replace function is used, the found text will be deleted in the matching results.
Results color key
This color key indicates what type of record the search results match. You can set your preferred colors by clicking on each of the corresponding color swatches. Or by selecting the colors via the Fact Sheet Fusion preferences dialog
The search results panel will list all records that match the search criteria after the ‘Find All’ button has been selected. Each matching record will be color coded and listed in this panel. You can select one or more records in which to apply the ‘Replace’ function.
When a record is selected within the Search Results panel its content is displayed within the display panel below. This will for example allow you to check the matching criteria prior to making a replacement.
Record Display Panel
When a search result record is click on its content is displayed in this panel. You can view the rendered HTML or the underlying HTML code of the record (via the code tab). This is useful for checking the search criteria matches what you intended.
The contents of the display panel can now be edited directly. You must use the ‘Save HTML’ button (Ctrl + S) to save any changes. You will be notified when the record has been saved successfully via a message in the bottom left status bar of the find and replace dialog.
The Find All button will initiate the search using the defined search criteria. Any record that are found will be listed in the Search Results panel.
This function will replace all matching criteria with the replacement text to the selected records in the Search Results panel.