Difference between revisions of "WDSC Find Tips"

From MidrangeWiki
Jump to: navigation, search
(To find camel case words.)
(To find camel case words.)
Line 6: Line 6:
 
# Regular e<u>x</u>pression (Alt-X)
 
# Regular e<u>x</u>pression (Alt-X)
  
The regular expression is boken down like this
+
:The regular expression is boken down like this
;([a-z]|[A-Z]) :- Find the first character that is either upper or lower case.
+
::;([a-z]|[A-Z]) :- Find the first character that is either upper or lower case.
;[a-z]+        :- Find at least one to many characters that are lower case only.
+
::;[a-z]+        :- Find at least one to many characters that are lower case only.
;[A-Z]+        :- Find at least one to many characters that are upper case only.
+
::;[A-Z]+        :- Find at least one to many characters that are upper case only.
;[a-z]+        :- Find at least one to many characters that are lower case only.
+
::;[a-z]+        :- Find at least one to many characters that are lower case only.
;(\W|\b)      :- Find any character that is not a word character or is the end of line.
+
::;(\W|\b)      :- Find any character that is not a word character or is the end of line.

Revision as of 19:38, 24 May 2007

To find camel case words.

  1. Open find with Ctrl-F
  2. Key in "([a-z]|[A-Z])[a-z]+[A-Z]+[a-z]+(\W|\b)" (without the quotes) into the Find box (Alt-F)
  3. Choose case sensitive (Alt-C)
  4. Whole word (Alt-O)
  5. Regular expression (Alt-X)
The regular expression is boken down like this
([a-z]|[A-Z]) 
- Find the first character that is either upper or lower case.
[a-z]+  
- Find at least one to many characters that are lower case only.
[A-Z]+  
- Find at least one to many characters that are upper case only.
[a-z]+  
- Find at least one to many characters that are lower case only.
(\W|\b)  
- Find any character that is not a word character or is the end of line.