My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 7: Wikipedia regular expression is broken
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-High


Sign in to add a comment
 
Reported by shenada, Jun 16, 2008
What steps will reproduce the problem?
1. search "english" on wiki

What is the expected output? What do you see instead?
Search box should sync when switch to Wikipedia tab, but nothing happend.

What version of the product are you using? On what operating system?
SearchBox sync 1.2, Firefox 3.0RC2(Gecko/2008052906 Firefox/3.0
ID:2008052906), Linux(Fedora 9)&Windows Vista&Windows XP

Please provide any additional information below.
Able to fix by new regular expression as below.

-
^http[s]?://[^.]{2,3}\.wikipedia\.org/w/index\.php\?(.*&)?search=([^&]+)
-
Comment 1 by shenada, Jun 16, 2008
1. go http://zh.wikipedia.org
2. search "english" on page search box

url after search "english"
http://zh.wikipedia.org/w/index.php?search=english&go=%E9%80%B2%E5%85%A5

Comment 2 by legege, Jul 01, 2008
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High
Comment 3 by scottgil...@yahoo.com, Jul 11, 2008
Search URLs can take one of two formats. For example:

http://en.wikipedia.org/wiki/Special:Search?search=left+search+box&go=Go
http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=research+main&ns0=1&fulltext=Search

A more inclusive expression seems to result in successful matches for either of the
examples above:

^http[s]?://[^.]{2,3}\.wikipedia\.org/(.*)search=([^&]+)
Sign in to add a comment

Hosted by Google Code