Using Wildcard/Regex for find & replace in Visual Studio -


i need replace different values of receivetimeout attribute receivetimeout="59:59:59" can wild card search used achieve task, in visual studio?

<endpoint receivetimeout="10:10:20" someotherproperty="x1" yetanotherproperty="y1" /> <endpoint receivetimeout="10:50:20" someotherproperty="x2" yetanotherproperty="y2" /> ... <endpoint receivetimeout="30:50:20" someotherproperty="x3" yetanotherproperty="y3" /> 

i tried: using wildcard option in find & replace dialog, receivetimeout="*" selects complete line, receivetimeout="10:10:20" someotherproperty="x1" yetanotherproperty="y1" />

as might have guessed, editing wcf service web.config , have task manually & repeatedly.

using regex option...

find: <endpoint receivetimeout="[^"]+"

then...

replace: <endpoint receivetimeout="59:59:59"

the [^"]+ part uses negative character class matches character except double quote. + match 1 or more times.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -