ack --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g'

Bash use ack and sed to find and...

by Kevin Tran, February 18, 2011 01:35, No refactoring, tagged with replace, bash, find, ack, sed

use ack and sed to find and...

D41d8cd98f00b204e9800998ecf8427e Talk
$outputstr =  preg_replace('/[-]{2,}/','-',trim(strtolower(str_replace(' ','-',preg_replace('/[^A-Z0-9- ]+/i','',$inputstr))),'-'));

PHP Trimming excess from string

by paulswansea.myopenid.com, February 05, 2010 16:07, 4 refactorings, tagged with php, regex, replace

I'm trying to get an input ...

E4bd1595f34e7e03765eda6ed65bf6bb Talk
<? php
if $userinput = "http://www."
{
...

PHP Replace user input with link

by Mlopez, January 02, 2008 01:39, 28 refactorings, tagged with http, parsing, phrasing, help, user, php, url, with, text, replace

im not quite sure where to ...

132a00e84e74c003f68311b39b28e969 Talk