Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Example: I am looking to see if "arg" is a special keyword in Lua. I go to the Lua reference manual at http://www.lua.org/manual/5.1/manual.html. I search for "arg". I find hundreds of occurrences of the word "argument(s)" or "vararg".

Any ideas? I know Firefox won't implement whole words as a core feature (something about cluttering up the ui... argh...), and I couldn't find a good addon that implemented this well.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

I usually search for something like this:

<space>arg<space>

or, in your case this would probably work

arg<space>

Its not foolproof. If there is punctuation directly after an instance of what you're looking for you would have to search for that explicitly, but for the most part it works pretty well.

share|improve this answer
    
Yeah, I do that occasionally, but as you say it's not foolproof. –  romkyns Apr 16 '10 at 13:48
    
This is such an important feature that I can't believe I'm still google-ing for answer in 2012. –  huggie Jul 3 '12 at 7:09

I was very surprised to see that there isn't a current addon that supports this.

If I needed to do it without an addon I would copy the text of a page into an editor and search for the regex

/\barg\b/i

Which will find

  • arg!
  • "arg"
  • ARG
  • ¿arg?
  • arg-u-ment

but would not find

  • argument
  • barge
share|improve this answer
2  
Hmm, good idea, though if I did copy it then I'd just use the "whole words" option in this case, which all my favourite editors have. –  romkyns Apr 16 '10 at 13:51
    
I love these crazy smart ideas! :) –  JohnS Mar 7 '13 at 15:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.