Regex for Eclipse/Flash Builder File Search for comments?

Posted by Brian Bishop on Stack Overflow See other posts from Stack Overflow or by Brian Bishop
Published on 2011-01-05T14:44:59Z Indexed on 2011/01/05 14:53 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

In Eclipse (and Flash/Flex Builder) you get the option with Ctrl+Shift+F to do a file search and look for a regular expression. Would be a real handy thing to know.

I want to find the word negate if it appears in a Flex/java comment like the following:

// It was negated because

or

/*
  The negate option was....
*/

or

/**
 * We have to negate the value
*/

Any ideas? Will test them out at http://www.regexplanet.com/simple/index.html

© Stack Overflow or respective owner

Related posts about java

Related posts about regex