Can we use wildcards based searching in Monodevelop? - unity3d

I want to find and edit Debug statements in my file. I would like to know if I can edit all those files simultaneously using wildcards in the replace function of MonoDevelop.

MonoDevelop offers a search based on regex (not wildcards):
You can use it to search things such as Debug\.Log.+ which will match things like:
Debug.LogError
Debug.LogWarning

Related

Emacs - Projectile Ag. Search specific file types

So I am using projectile as project management tool for emacs, and I can do projectile-ag in my emacs to lookup for terms.
I however I would like to filter my search by the file extensions, for instance sometimes I would only like to view terms that matched in .java files and in some cases only the terms matched in .hql files.
How can I achieve it?
(I can probably do it by grepping the ag buffer's results ofcourse - I am looking for a better way to do this - probably something like file masks in Intellij)
If you would use ag from the command line you could pass --java as a parameter. If you use ag.el you would have to call ag-files and it will ask you about file type, then just type java or hql
Using the universal argument (C-u) before invoking projectile-ag (or some other projectile search commands) will present an args: prompt, at which you can specify an ag option like --java.

How to use wildcards in nant xmlpoke file path

I am using the xmlpoke task in nant and am looking for a way to use a wildcard when addressing the xml file. Right now I have a file path like project\appFiles\project{versionNumber}\fileToUpdate.xml, I would like to use a wildcard so its something like project\appFiles\project*\fileToUpdate.xml so I don't have to update the version number every time.
How do you get it to respect wildcards?
Looking all over the web, it doesn't look like this is possible, and by design. Like copy command (todir), the file path must point to a single file so no wildcards allowed (Found info on copy command, assuming same applies for XMLPoke, but could confirm exactly).
I ended up changing some design stuff so now the version number is easily calculated by the program calling the script, so passing in not an issue anymore.

Eclipse find all in one file

In Eclipse (CDT), is there a way to find all occurrences of a string in a single file? I can search the entire workspace easily enough using Ctrl-H, and can do "find-next" using Ctrl-F, but I want to be able to see a list of all matches for just one file.
It would be possible to do by setting up a custom file filter for each file I want to search, but that's very clunky. Eclipse should be able to work out which file I have open and just search that file.
This seems like it should be easy, but I can't find an appropriate option...does it exist?
Use CTRL+H and switch to File Search as you already mentioned, but set Scope to Selected resources. Now you can either search the current file, or selected multiple files and search all of them

PMD rule for checking html/jsp files

I´d like to create a PMD rule that checks for a regex expression in any file (txt, html, jsp, etc.). The rule does not use Java or XPath structure.
The idea is to read the file and add violations according to the line analyzed. I don´t know how to do this using Rule methods...
Any idea?
Thanks,
Andre
You would have to create a Java run that looked for a property containing the regex. It should be fairly straight forward. Extend AbstractRule so in say Rule.start you could use the RuleContext.getSourceCodeFile() to retrieve the file, load it and run your regex over it.

How do I search files in Eclipse so the results shows files that do NOT contain the search term?

In Eclipse editor, if I go Search->File, I can search for files that contain my search term. What I want to do is find all of the files that DO NOT contain my search term. Is that possible?
This expression should work (reference):
(?s)\A((?!YourSearchText).)*\Z
Try checking "regular expression" option and then input somethign like [^term] or (?!term) -- meaning of both of this is 'not term' but they are slightly different (please refer to some RegExp documentation like this).
The simplest way imo is to use InstaSearch Eclipse plugin and type:
search text -wordToExclude -anotherWordToExclude