topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 11:02 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Bug(?) in aliases  (Read 9620 times)

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Bug(?) in aliases
« on: September 07, 2005, 10:13 AM »
Here are a couple more settings

lookup
 (.*)
Encarta $$1 |http://encarta.msn.com/encnet/refpages/search.aspx?q=$$1
Britannica $$1 |http://www.britannica.com/search?query=$$1&go_button.x=10&go_button.y=5&ct=



Strangely I find if I type:

lookup Einstein                (I was feeling highbrow)

not only does it come up with the expected:

Encarta Einstein
Britannica Einstein

but it also comes up with all of the "define Einstein" results (based on your dictionary dist) but not the "search Einstein" results (based on my web search list).

Any idea why this should be?

I tried various alternative alias names but it made no difference??

Using build 1.07.06 by the way.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug(?) in aliases
« Reply #1 on: September 07, 2005, 12:52 PM »
make sure you are specifying the regular expression "lookup (.*)" all on one line in the right place:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug(?) in aliases
« Reply #2 on: September 07, 2005, 12:53 PM »
any chance you were specifying it incorrectly and that was explanation for bug?

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Bug(?) in aliases
« Reply #3 on: September 07, 2005, 01:22 PM »
Wow... that's a fancy screenshot.  You ever hear of a program called "Screenshot Captor"??  ;)

Kevin

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug(?) in aliases
« Reply #4 on: September 07, 2005, 01:36 PM »
hehe

note carol that the regular expression contains the "define" or "search" word on it - i suspect you were just speciying "lookup" as the alias group name and "(.*)" in the regular expression field.  i know its confusing because of the group name thing, but that is actually independent from the regular expression and is used both for naming purposes and for separate patten matching.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Re: Bug(?) in aliases
« Reply #5 on: September 07, 2005, 02:03 PM »


Need I say more  :-[

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug(?) in aliases
« Reply #6 on: September 07, 2005, 02:07 PM »
not at all - i can see easily why you did what you did.

you know what someone should make that i haven't seen yet? a reverse-regular-expression generator, that would take a regular expression and generate sample strings that match it - that would be a great way to test a regular expression..  maybe i'll look into it a little later.

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Bug(?) in aliases
« Reply #7 on: September 07, 2005, 03:50 PM »
IIRC both The Regex Coach (do try it if you haven't) and RegexBuddy can reverse a regex into its constituant steps...
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bug(?) in aliases
« Reply #8 on: September 07, 2005, 03:58 PM »
yes but can it generate a long list of example strings that match an abitrary regex you type.