Page 1 of 1

Regular Expression Searches

Posted: Mon Jan 31, 2005 5:32 pm
by dprior
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?

Posted: Mon Jan 31, 2005 5:32 pm
by dprior
I should note that if I try this in the "Find" operation, there is a hit on the file...

Posted: Mon Jan 31, 2005 5:32 pm
by Guest
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...

Re: Regular Expression Searches

Posted: Mon Jan 31, 2005 5:32 pm
by Abacre
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.

Re: Regular Expression Searches

Posted: Mon Jan 31, 2005 5:32 pm
by dprior
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.