Last modified: 2012-04-19 21:43:13 UTC
Created attachment 7444 [details] Wiki_2010-06-09_REGEx Replace.pdf Reporting against Babaco Release : Tested link : Steps to Reproduce :: 1) Enter text as test testing test001 testtest 2) Search for test[^ ]* and replace the text with QA and click on replace all <<All the 4 items get removed and one item there with the word QA>> 3) Tried the same with test plan testing plan test001 plan testtest plan <<It correctly replace the word start with test and gave the result as QA plan for all 4 instances>> Expected Outcome:: Test Environment:: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
This is expected, test[^ ]* will match the entire input in the first case as there are no space characters. If you want the behaviour you seem to, use test[^\s]* so that newlines are also excluded.
Verified and closed