Go Back   Scooter Forums > Beyond Compare 3 Discussion > Text Compare (2-way)
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 26-Jul-2012, 01:55 AM
embronne embronne is offline
New User
 
Join Date: Jul 2012
Posts: 1
Question Session rules comparison regex

Hi,

I'm trying to tell Beyond Compare that all XML elements that have a name ending with "index" are unimportant. When I use the regex <.*index>\d+<.*index> it works, but it should be something like <(.*index)>\d+</\1>, only that one doesn't match anything. What's wrong? (I played around a bit and the \1 doesn't seem to work, even a simple (\d)\1 doesn't match anything.)

Thanks a lot, regards,

Miel.
Reply With Quote
  #2  
Old 26-Jul-2012, 08:38 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,447
Default

Hello,

Sorry for the confusion. Our grammar regular expression handling does not currently support back references, but expanding this functionality is on our wishlist. In the meantime, you would need to use your first regex to match on <index>.
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 02-Aug-2012, 06:43 AM
griels griels is offline
New User
 
Join Date: Aug 2012
Posts: 1
Default

Hey, I feel guilty enough for having used BC on the evaluation license for longer than I care to admit, but adding backreferences to Session Rules would guarantee an immediate Pro purchase from me.

Is there somewhere I can vote for this or do I need to pay up? Because I would gladly do so
Reply With Quote
  #4  
Old 03-Aug-2012, 10:07 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,447
Default

Hello,

It is not likely we would be able to implement this soon, but I've added it to our Customer Wishlist. I'll add your notes to the entry as well.
__________________
Aaron P Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:02 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.