WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

re.place

re.place adds content filter wich searches in posts for specified patterns (regular expressions) and replaces matches found with specified strings.

A brief examples

  1. As a search field, use '_—' (space in place of _!), as a replace -- '#160;—'. This will insert non-breaking space before every em-dash.

    Mmm... You may wish even use '<span style="letter-spacing:0.1ex;">#160;</span>—' as a replase to insert narrower non-breaking space... If you love typography too much... And you can make space after dot wider...

  2. Search for ':-)' and replace with:

    '<img src="http://www.kolobok.us/smiles/standart/smile3.gif"' . 'alt=":-)" title=":-) (nice smile -- http://www.kolobok.us/smiles/standart/smile3.gif)"' . 'style="vertical-align: middle;" />'

  3. Search pattern: YouTube\(([a-zA-Z_0-9\-]*)\)

    Replace pattern:

    '<object width="425" height="344" data="http://www.youtube.com/v/\1" type="application/x-shockwave-flash"> <param name="movie" value="http://www.youtube.com/v/\1"></param> </object>'

    This will allow you to use markups like YouTube(TMCf7SNUb-Q) to insert Youtube video fragments easily.

  4. How to Mass Remove Link (mass deactivate URL Linked text inside posts)? (http://wordpress.org/support/topic/288020)

    Search pattern: <a [^>]*>([^<]*)<\/a>

    Replace pattern: \1

    This will "deactivate" all links in all posts (e.g. replace <a href="...">Try!</a> with just Try!). Note, you can activate them back, deactivating this re.place entry.

  5. Want to insert drop caps easily?.. Use '<drop>L</drop>orem ipsum...' in your posts and replace it with <span class="dropcap">\1</span>'. Use angle brackets, and if you (accidentally) deactivate re.place, these "tags" won't mess you page.

  6. New --- in v0.1.3 --- [beta-] feature: you can specify different replace patterns for authenticated users and "guests". Sorry, i'll update screenshots and doc ASAP. :-)

Requires: 2.0.2 or higher
Compatible up to: 2.8.3
Last Updated: 2010-4-1
Downloads: 3,323

Ratings

3 stars
3.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,2,2
0,1,0