Function Repository Resource:

SearchMessages

Source Notebook

Search for a built-in message containing the given text

Contributed by: Jan Mangaldan

ResourceFunction["SearchMessages"][str]

finds a built-in message containing the substring str.

ResourceFunction["SearchMessages"][str,symbol]

finds built-in messages associated with symbol containing the substring str.

Details

ResourceFunction["SearchMessages"] returns a list of rules containing the message name and the content of the message.
ResourceFunction["SearchMessages"] accepts the option IgnoreCase.

Examples

Basic Examples (1) 

Get all messages containing the substring "seats":

In[1]:=
ResourceFunction["SearchMessages"]["seats"]
Out[1]=

Scope (2) 

All messages containing "BDF":

In[2]:=
ResourceFunction["SearchMessages"]["BDF"]
Out[2]=

All messages containing "permissions":

In[3]:=
ResourceFunction["SearchMessages"]["permissions"]
Out[3]=

All messages associated with General containing "permissions":

In[4]:=
ResourceFunction["SearchMessages"]["permissions", General]
Out[4]=

Options (2) 

IgnoreCase (2) 

By default, SearchMessages ignores the case of the search term:

In[5]:=
ResourceFunction["SearchMessages"]["cosine"]
Out[5]=

Find messages containing the exact string "cosine":

In[6]:=
ResourceFunction["SearchMessages"]["cosine", IgnoreCase -> False]
Out[6]=

Version History

  • 1.1.0 – 07 January 2021
  • 1.0.0 – 22 October 2019

Related Resources

Author Notes

This submission is based on this original implementation on Stack Exchange: https://mathematica.stackexchange.com/a/14799

License Information