User:Serkan/test5: Difference between revisions
From FANTOM5_SSTAR
mNo edit summary |
mNo edit summary |
||
Line 140: | Line 140: | ||
return str.replace(new RegExp(escapeRegExp(find), 'g'), replace); | return str.replace(new RegExp(escapeRegExp(find), 'g'), replace); | ||
} | } | ||
function escapeRegExp(string) { | |||
return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); | return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); | ||
} | } |
Revision as of 10:56, 18 April 2014
Mouse transcription factors