Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regular expression help

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Gazmond



Joined: Thu May 08, 2008 12:16 pm
Posts: 3

PostPosted: Wed Apr 14, 2010 11:22 am    Post subject: Regular expression help Reply with quote

Are there any regex experts around? I need to replace
sortCompareFunction="some value here"
with
sortCompareFunction="{some value here}"
Back to top
View user's profile Send private message
Gazmond



Joined: Thu May 08, 2008 12:16 pm
Posts: 3

PostPosted: Wed Apr 14, 2010 11:34 am    Post subject: Reply with quote

Actually, don't worry, we worked it out ourselves:
s/sortCompareFunction="\([^"]*\)"/sortCompareFunction="{\1}"

Huzzah
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast