Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Appendix C (continued)

Wildcard Characters

?  Match any character

The ? character matches any single character, except the return character. Thus the command

Find /sta?/

matches the words "Stan", "star", and "stay".

If you want to match the ? character itself, you must enclose it within single quotation marks, as in /'what?'/, or double quotation marks, as in /"what?"/. You can also match the ? character itself by placing the ∂ (Option-D) character before it, as in this example:

Find /what∂?/

≈  Match any string  [Option-X]

The ≈ character matches any string of characters that does not include a return, including the null string. For example,

Find /sat≈/

matches the strings "sat", "sate", "satisfaction", and "Saturday".

 
 


Last Updated July 2000