Last modified: 2012-04-19 21:43:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22597, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20597 - Search & Replace : Regular expressions with * does not work
Search & Replace : Regular expressions with * does not work
Status: CLOSED INVALID
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
PC Windows Vista
: Normal major (vote)
: ---
Assigned To: Trevor Parscal
http://usability.wikimedia.org/wiki/R...
:
Depends on:
Blocks: 36111
  Show dependency treegraph
 
Reported: 2009-09-11 17:55 UTC by Calcey QA
Modified: 2012-04-19 21:43 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Calcey QA 2009-09-11 17:55:57 UTC
Reporting against Babaco Release. (Hosted on http://prototype.wikimedia.org)

Steps to Reproduce ::
1) Start creating a new page 
2) Add some text in the edit window 
3) Click 'Search and replace' icon (e.g : Testing MediaWiki )
4) Set search for (Test* ) and Replace with (TESTING)
5) Check flag 'Treat search string as a regular expression'
6) Click 'Replace' button 

<<Testing is replaced with TESTINGing >>



Expected Outcome ::
* in Search string is ignored 
* Also other regular expressions are ignored (^ , $ etc)


Test Environment (Client) ::
Browser (User-Agent):  	Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Javascript: 	Enabled
Cookies Enabled: 	Enabled
Java Enabled: 	Enabled
CPU class/type: 	OS/CPU Windows NT 6.0
Screen Width x Height: 	1280 x 800
Screen Color Depth: 	32
Comment 1 Chad H. 2009-09-11 18:08:50 UTC
WORKSFORME?

The regular expression /Test*/ will match "Tes" with any possible number of t's on the end. This could be "Tes" or potentially "Testtttttt". In any case, when using the string "Testing Mediawiki" and I replace /Test*/ with "TESTING" I get "TESTINGing Mediawiki" as I'd expect.
Comment 2 Roan Kattouw 2009-09-11 19:01:55 UTC
As mentioned in comment #1, test* only matching test and not testing is perfectly valid behavior. You seem to want test[^ ]* (test followed by any number of characters that aren't spaces).
Comment 3 Calcey QA 2009-09-29 05:01:51 UTC
Added keyword babaco to the bug

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links