Page 1 of 1

Assistence

Posted: Tue Jun 21, 2011 1:22 pm
by Dick
Hello, we just bought Compare It. I want to make a rule (RegEx). The linenumbers should be excluded in the compare action.
File nr. 1:
01 blabla
02 dfsdfsdf
003 werwe
N04 qwqwe

File nr. 2:
01 blabla
02 dfsdfsdf
03 werwe
04 qwqwe

As you see, the text in both files are similar. But the linenumers aren't. How can i make a rule so compare IT just looks at the text and not the linenumbers?

Thanis in advance.

Dick

Re: Assistence

Posted: Wed Jun 22, 2011 8:26 am
by Dick
In other words, i want to start comparing after the first space.
Does anyone have an idea?

Re: Assistence

Posted: Wed Jun 22, 2011 10:48 am
by TonHu
I've tried this one

Code: Select all

\s\w+(\s)+
with your data on http://www.regextester.com

Re: Assistence

Posted: Wed Jun 22, 2011 11:12 am
by Dick
Do i have to place it in Search(R1)?

And what 'Action' do i select? Ignore lines not matching R1?

Would you be so kind to sent some screenshots?

Thanks

Re: Assistence

Posted: Thu Jun 23, 2011 7:48 pm
by TonHu
I guess the regex engine used by CI! is quite different from the one at regextester.com. That's not nice :cry:

I got success by entering at R1:

Code: Select all

^\w+\s+
and selecting Replace. The enabling and naming you can figure out by yourself I guess 8)
All other settings for regex should be empty. I've been using the latest unicode release from Developers blog (15-05-2011, build 2242), but older releases should work as well.

Luck,
Ton