This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Regex Boundary matchers | ||
---|---|---|---|
Product: | editor | Reporter: | Martin Schovanek <mschovanek> |
Component: | Search | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jsprenkle |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Martin Schovanek
2006-03-15 17:59:55 UTC
Searching works if you use regular expression of the form: ^. We should investigate why there is no match found for the other variants. moving opened issues from TM <= 6.1 to TM=Dev I tried to replace '^(.)' with '//\1' and all was replaces, what exactly do not work? Can't reproduce with 090409, feel free to reopen if it still do not work as expected. Still reproducible in 200904100201 I was trying to comment out all lines (put: '//' at the beginning of each line). In VIM editor I can do it by: :%s/^/\/\// or :%s/^\(.\)/\/\/\1/ After the first attempt i understood that Nb have problem with 'Boundary Matchers' (beginning / end of a line, ...) they does not match any real chars so I was trying to pass by the second RE with 'Back Reference' but it does not work as well. see: http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html Thanks, It seems editor can't find just start of line, end of line etc, it works like it need smth to be selected after search or smth real can be replaced. Also nb do not combine info from find and replce fields as I understand. So the issue is real, but it may be not an issue but some limitation in design on find-replace functionality. For example openoffice replace dialog works the same way and can't find just "^". For this issue there is alternative values(workaround) for search and replace fields: "(.+)" in search and "//$1" in replace, this way all not empty lines will be commented. Not so serious, lowering priority. Can you please explain a little bit more? AFAIK the majority of coder's editors have proper RegExp support. Why it is not serious for the Nb Editors? It is not so serious because 1. we have it like this for the last 5 or so years 2. workaround exists 3. this issue has gathered exactly zero votes Am I missing something? Of course I will be more than happy to apply any submitted patches (that would make sense). *** Bug 181168 has been marked as a duplicate of this bug. *** This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |