Regular Expression Searches

General discussions about Advanced Find and Replace
Post Reply
dprior

Regular Expression Searches

Post by dprior » Mon Jan 31, 2005 5:32 pm

It doesn't seem that regular expressions work at all. I have tested My regular expressions using RegExBuilder (a .net app) and they are correct. I am using the replace function and searching for:

<!--webbot bot="Include".*-->

I am replacing that with

<!-- Header Start -->

When I run these on test files using AFR they never find a match. What's the deal? Is there somewhere in AFR where I have to tell it I'm using RegEx's?

dprior

Post by dprior » Mon Jan 31, 2005 5:32 pm

I should note that if I try this in the "Find" operation, there is a hit on the file...

Guest

Post by Guest » Mon Jan 31, 2005 5:32 pm

dprior wrote:I should note that if I try this in the "Find" operation, there is a hit on the file...


Also, it seems to work if I use the batch replace screen. However, I like the functionality of the Replace screen because you can insert before, after, between, etc...

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Re: Regular Expression Searches

Post by Abacre » Mon Jan 31, 2005 5:32 pm

dprior wrote:It doesn't seem that regular expressions work at all. I have tested My regular expressions using RegExBuilder (a .net app) and they are correct. I am using the replace function and searching for:

When I run these on test files using AFR they never find a match. What's the deal? Is there somewhere in AFR where I have to tell it I'm using RegEx's?


In AFR you may use regular expressions in Batch operation only.
In order to activate it, check ON "Use regular expressions".
AFR uses classical style of regular expressions normally implemented
in Perl, APE.NET and other tools.

Please, give me some examples of "source text". And I will generate
correct search/replace pairs.

Note, AFR also has "Regular expressions builder" on Batch tab where you may test
regular expressions.

dprior

Re: Regular Expression Searches

Post by dprior » Mon Jan 31, 2005 5:32 pm

Roman wrote:
dprior wrote:It doesn't seem that regular expressions work at all. I have tested My regular expressions using RegExBuilder (a .net app) and they are correct. I am using the replace function and searching for:

When I run these on test files using AFR they never find a match. What's the deal? Is there somewhere in AFR where I have to tell it I'm using RegEx's?


In AFR you may use regular expressions in Batch operation only.
In order to activate it, check ON "Use regular expressions".
AFR uses classical style of regular expressions normally implemented
in Perl, APE.NET and other tools.

Please, give me some examples of "source text". And I will generate
correct search/replace pairs.

Note, AFR also has "Regular expressions builder" on Batch tab where you may test
regular expressions.


It's all set now. I figured it out. Thanks.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest