Message of "invalid preceding regular expression"

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Message of "invalid preceding regular expression"

Post by kengrubb »

Only I'm not doing an RE replacement. RE box is not checked.

I've upgraded to 2.0, and for now I'll drop back and use 1.1 as I don't recall this ever happening with 1.1
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
bbadmin
Site Admin
Posts: 878
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

If you let us know how to reproduce this problem, we'll look into it.

Keith MacDonald
Helios Software Solutions
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I'm getting it with literally anything I try. At first I thought it was because I had backslashes in my string, but I've tried a number of different things. I get the error with something as basic as replacing the letter a with the letter b using WildEdit 2.0

In Search for, all of the checkboxes are unchecked.

In Replace with, I've tried with Literal Replacement checked and unchecked.

The Include file filter is *.bat

The Exclude file file is blank

Search subfolders is not checked.

Encoding is windows-1252
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I used your settings searching for "a" and replacing with "a".

Had no errors, here is message from my log:
=== BEGIN REPLACE COMMAND ===
{
Time: 2010-Feb-20 22:46:44
Search Pattern: a
Replacement Format: a
Character Encoding: windows-1252
Root folder: C:\Temp
Include Filter: *.txt
Exclude Filter:
Regular Expression: false
Match Words: false
Match Case: false
"." matches null characters: false
"." matches end of line characters: false
Literal Replacement Format: true
Search Subfolders: false
}
C:/Temp/BoiseNetWiz.txt: 222 replacements made
C:/Temp/Destination.txt: 1520 replacements made
C:/Temp/hpjsilg2.txt: 1730 replacements made
C:/Temp/taskx.txt: 369 replacements made
C:/Temp/temp.txt: 42 replacements made
C:/Temp/test.txt: 3 replacements made
Number of files searched: 6
Number of files modified: 6
Total changes made: 3886
=== END REPLACE COMMAND ===
Using WildEdit 2.0 on XP PRO-SP3.
Hope this was helpful.............good luck,
Bob
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

I solved it by deleting my config2.xml file in %USERPROFILE%\Application Data\Helios\WildEdit
Old config2.xml:
<WildEdit>
<Placement>
<value name="Main"
type="blob">A0000000A0000000023000000D20000010000000D21000000E100000</value>
<value name="Registers"
type="blob">00000000000000000000000000000000</value>
</Placement>
<Options>
<value name="flags"
type="bitset">0010000001001000000000000001</value>
<value name="OnceOnly"
type="bitset">00000000000000000000000000000001</value>
<value name="height"
type="int">100</value>
<value name="monospaced"
type="int" />
<value name="monospacedfont"
type="string">Courier New</value>
<value name="TipState"
type="blob">001000000000000010000000</value>
</Options>

New config2.xml:
<WildEdit>
<Placement>
<value name="Main"
type="blob">A0000000A0000000023000000D200000100000000F0000000E100000</value>
<value name="Registers"
type="blob">00000000000000000000000000000000</value>
</Placement>
<Options>
<value name="flags"
type="bitset">0010000000001000000000000001</value>
<value name="OnceOnly"
type="bitset">00000000000000000000000000000001</value>
<value name="height"
type="int">100</value>
<value name="monospaced"
type="int" />
<value name="monospacedfont"
type="string" />
<value name="TipState"
type="blob">001000000000000010000000</value>
</Options>
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply