- Posted by
-   Topics
-   Views
- BAbdulBaki
Aug 18, 2015
- I can follow your logic, I just have a hard time creating my own Perl RegEx since I've used UE's RegEx for many years and only used UE for RegEx. The first folding RegEx was fine, but left the comments that started with * when folded. The second folding RegEx was better and did what I needed so far....Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- BAbdulBaki
Aug 14, 2015
- It turns out, some of my block comments did start with *, so your last RegEx for use with folding was extremely useful. Using your first RegEx with replace all, it seems that it replaces all lines with empty lines. I am able to replace two consecutive empty lines with one though. The only issue with...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- BAbdulBaki
Aug 14, 2015
- Thanks, I somehow missed that. I suppose I could do a replace and not save the file. I was looking for a way to view inherited code files which are way too big, but more manageable when compacted without comments and blank lines. Thanks for the tutorial.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- BAbdulBaki
Aug 14, 2015
- Thanks, for the response. As you've surmised, I use UE to build my RegEx and not Perl. I seem to remember IDM saying their UE RegEx is buggy and to switch to Perl. To clarify, I'm not using it to delete lines (Find/Replace). I'm using it with the "Filter lines | Hide" option to just hide them. Howev...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- BAbdulBaki
Aug 14, 2015
- I'm trying to find all lines that are either comment lines or blank lines and trying to hide them. Since this is C code, I can find any line that contains whitespace only or begins with whitespace and starts with // or /*. Any suggestions on how to do that? I'm also having trouble with whitespace on...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- BAbdulBaki
Aug 13, 2015
- @amedeo: Your first string was causing false positives for "else if". I replaced it with the following: "%[ ^t]++[A-Za-z]+^(^{[A-Za-hj-z]^}^{i[~f^p]^}[~(){};^p|^^!]+[ ^t][A-Za-z][~(){};^p&|^^!]+^)[ ^t^p]++([~{};()]++)[~{};&|^^!]++{" Remove quotes ("...") to use. Thanks, BassamPosted in Syntax Highlighting
-   Topics
-   Views
- BAbdulBaki
Jan 10, 2013