View unanswered posts | View active topics

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

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

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

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

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

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 3055
Location: Finland
Reply with quote
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 1 guest

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.