Regular expression help

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Regular expression help

Postby Gazmond » Wed Apr 14, 2010 10:22 am

Are there any regex experts around? I need to replace
sortCompareFunction="some value here"
with
sortCompareFunction="{some value here}"
Gazmond
 
Posts: 3
Joined: Thu May 08, 2008 11:16 am

Postby Gazmond » Wed Apr 14, 2010 10:34 am

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

Huzzah
Gazmond
 
Posts: 3
Joined: Thu May 08, 2008 11:16 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest