Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 06, 2016, 04:21:09 AM
  • Proudly celebrating 10 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 6672 times)

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 7,986
    • View Profile
    • Dales Computer Services
    • Donate to Member
Bug(?) in aliases
« on: September 07, 2005, 10:13:39 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: 36,406
    • 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:42 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: 36,406
    • 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:23 PM »
any chance you were specifying it incorrectly and that was explanation for bug?

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 578
    • View Profile
    • Donate to Member
Re: Bug(?) in aliases
« Reply #3 on: September 07, 2005, 01:22:07 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: 36,406
    • 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:04 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: 7,986
    • View Profile
    • Dales Computer Services
    • Donate to Member
Re: Bug(?) in aliases
« Reply #5 on: September 07, 2005, 02:03:44 PM »


Need I say more  :-[

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,406
    • 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:39 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:46 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: 36,406
    • 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:53 PM »
yes but can it generate a long list of example strings that match an abitrary regex you type.