Search is not working
- make sure there is nothing in the 'File Name Patterns' box
- mark text can cauyse some issues so go to options->editor->marked occurances, then off/on
- reboot netbeans
- make sure you have the correct scope selected
Regex search
These are some examples of searches in netbeans using a Regex pattern
So i want to change some <input> tags.
<input .....> to <input ..... />
The following will search for all <input strings that do not terminate in />
Search String: <input(.*)([^\/])> Replacement String: <input$1$2 />
However this does not take into account of whether there is a space at the end so I need to do another search for:
<input(.*)({space}){2}\/> - needs finishing
Notes
- ^ is a 'not' character when within []
[^\/]