Assistence

Post your bug reports here.
Post Reply
Dick
Posts: 3
Joined: Tue Jun 21, 2011 1:18 pm
Location: Netherlands

Assistence

Post 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

Dick
Posts: 3
Joined: Tue Jun 21, 2011 1:18 pm
Location: Netherlands

Re: Assistence

Post by Dick »

In other words, i want to start comparing after the first space.
Does anyone have an idea?

TonHu
Posts: 100
Joined: Mon Sep 29, 2003 10:48 am
Location: Netherlands

Re: Assistence

Post by TonHu »

I've tried this one

Code: Select all

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

Dick
Posts: 3
Joined: Tue Jun 21, 2011 1:18 pm
Location: Netherlands

Re: Assistence

Post 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

TonHu
Posts: 100
Joined: Mon Sep 29, 2003 10:48 am
Location: Netherlands

Re: Assistence

Post 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

Post Reply