Quick Tip: Adding New Regular Expressions to the Find Dialogue Menu

Regular Expression Drop Down Menu

You can save new regular expressions to the default list already present in the Find dialogue's menu. A simple matter of a little preference editing.


Step 1:
Give the expression a test run in Find (always better to check it works before adding it to the preferences). If you want to add a replacement value as well, test it out too.

The Find Dialogue

Step 2:
Select the regular expression in the Find dialogue and copy it to the clipboard (Cmd/Ctrl-C). That's it for this step, unless you want to add the replacement value as well.

Select and Copy the Regular Expression

Step 2a: (if you are adding both find and replacement values):
You'll need to copy and paste both the find and replace values into a text file outside GoLive. Why? Because the Preferences dialogue we are going to paste the values into is modal; it has to be closed before you can do anything else in GoLive, so we can't make two trips to copy and paste from the Find dialogue.

Copy Values to an External Text Editor



Step 3:
Open the GoLive preferences dialogue (Edit > Preferences) and expand the Find section. Select Regular Expressions.

Select Regular Expressions

Step 4:
Hit the new item button in the Regular Expression preferences.

New Item Button

Step 5:
Give a description to the regular expression and then (copy and) paste the value(s) you copied, either to the clipboard or the text file.

Add Description and Values

Step 6:
Hit the OK button. And you're done.

Hit OK

Next time you open the Find dialogue, your new regular expression will be available in the dialogue's menu.