a Windows tool which allows for searching for files using regex expressions, similar in functionality to linux grep, but with an advanced GUI
Questions tagged [powergrep]
22 questions
7
votes
1 answer
Regex find catch blocks without log
I am using regex with PowerGrep to search through a bunch of files. I am working with java files and my goal is to find all catch blocks that do not contain the word log within the block so that I can add logging. There are alot of files, so going…

jlars62
- 7,183
- 7
- 39
- 60
4
votes
1 answer
How to limit optional whitespace matches in regex
YARP. (Yup, another regex problem).
Not sure the clearest way to describe this other than concrete examples.
Sample text:
4444 4444 4444 4444
4444444444444444
44 44 44 44 44 44 44 44
4444-4444-4444-4444
4444 (multiple spaces) 4444 (multiple…

Kenneth Barker
- 41
- 3
4
votes
1 answer
PowerGrep Search and Replace: "cannot make replacements using read-only converters"
I get an error on PowerGrep software when I try to Replace the content of some files: "cannot make replacements using read-only converters"
What can I do? Can anyone help me a little bit?

Just Me
- 864
- 2
- 18
- 28
3
votes
1 answer
Regex search and replace with conditionals: works in Notepad++, doesn't in Powergrep?
I use this regex in Notepad++, to search and replace multiple words.
(good)|(great)|(fine)
(?1bad)(?2worse)(?3not)
Problem is, it doesnt work in Powergrep, any way to alter it?
Problem is, Notepad++ has limited lengh or regular expression, and…

Jim8645
- 181
- 3
- 15
2
votes
2 answers
PowerGREP - regular expression
I have log of Apache and each line of file looks like:
script.php?variable1=value1&variable2=value2&variable3=value3&.........................
I need to take out this part of string:
variable1=value1&variable2=value2
and ignore the rest of line.…

raven93
- 91
- 5
1
vote
1 answer
Regex: Remove line breaks in double quote field?
I have a .csv file with this error that I want to correct with regular expression, some fields contain line breaks, example:
"abc
de
f 123",123,456
Should be in one line, I want to remove line-breaks only but to keep the text
"abcdef…

Dan
- 15
- 3
1
vote
0 answers
Regular expression multiple search and replace?
I need a single regex to replace multiple words: 111, 222, 333, in text like this with 444, 555, 666 (case insensitive):
randomtext111randomtext
randomtext222
randomtext
333randomtext
randomtext
To replace with words 444, 555, 666
to have this…

Jim8645
- 181
- 3
- 15
1
vote
2 answers
Regex for nth line in a text file
I've been trying to get this regex down and searched alot for answers
What I need is to get the nth (4th in this example) line from a text file
I got this down atm
^(?<=([^\n]*\n){3})[^\n]*\n
But it doesn't seem to work (something about needing…

avishai445
- 33
- 1
- 4
0
votes
0 answers
extract lines from a list of text files
okay so I have a list of files and 3 lines containing a word I need to extract from each line
basically each file can be looked at like this:
random
random
random
random
LINE 1 TEXT RANDOM TEXT
random
LINE 2 TEXT RANDOM TEXT
random
random
LINE 3…

Amit Morad
- 1
- 1
0
votes
0 answers
Regular expression to combine two lines into one?
I am using PowerGrep to collect some data from html files. In every file I match two strings using regex, and then I want to combine that two strings into one line.
I tried to use:
$\r\n
and replace with blank but it won't work. When I use the same…

Robert
- 91
- 2
- 12
0
votes
2 answers
how to search and replace a block in files with Eclipse or PowerGREP?
There is a read me section at the beginning of my files, many files. The section's format likes this:
############### Read me ###############
many lines here
########################################
I want to update them with new contents. I am…

peterboston
- 877
- 1
- 12
- 24
0
votes
1 answer
Getting jar content
I'm trying to open some .jar archieve and get files from it.
What i've got now:
As i know .jar==.zip, so i used 7zip. It opens my jar and says that headers broken and still succeeded extraction.
I used standard Oracle jdk utility jar tvf my.jar and…

Jin
- 31
- 7
0
votes
1 answer
How to exclude an HTML tag in regex search
I'm using powerGrep to find instances of these:
BLOCK 1:
kat
But there are also instances of these among my files:
BLOCK 2
kat

Moogal
- 107
- 1
- 9
0
votes
2 answers
Regex to switch words?
I have long list of two string in every row, numerical string and alphanumerical string (that are of different length in every raw), that I want to change (switch) position:
010110,file_1.txt
0120100,file_11.txt
To have…

Jim8645
- 181
- 3
- 15
0
votes
0 answers
save result of search and replace feature PowerGREP
I want to save result of search and replace feature of PowerGREP to excel or csv file that contains separate column for replaced by, full file name and what is replaced.
Can anyone help on this ?
I know we can export result (as text file) but that's…

13i-iavi
- 21
- 5