View unanswered posts | View active topics



Reply to topic  [ 3 posts ] 
replace and regex 
Author Message
Member

Joined: Thu Sep 22, 2005 9:48 am
Posts: 4
Location: Singapore
Reply with quote
Hi,
currently this doesn't work in Find and Replace:

Code:
Find: var ([^:]):(.+);
Replace: var m_\1:\2;


with regex, as in scintilla (although brackets behaviour is different).

Store the matches somewhere and use it later.


Thu Sep 22, 2005 9:54 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
FlashDevelop's regex find/replace are done using the .NET engine.

Code:
Find: var ([^:]):(.+);
Replace: var m_$1:$2;


:!: Warning: This only works when doing replace all ("Replace All" button). There is currently (beta2) a bug in the replace method, so replacing one search result ("Replace" button) will not insert the matches.


Thu Sep 22, 2005 10:44 am
Profile WWW
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 3058
Location: Finland
Reply with quote
Post 
This issue has been fixed and uploaded to SVN. :)


Fri Sep 23, 2005 6:59 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.