Segment Search


Rob Sanchez

3rd Party (Free)

371 downloads (last 90 days)

Download v1.0.0

EE Version Support

  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Search URL segments for use in conditionals.


Search ALL segments for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff"}}{/if}

Search ALL segments for the exact word “stuff”.

{if {exp:segment_search keyword="=stuff"}}{/if}

Search ALL segments for the presence of the word “stuff” or “puff”.

{if {exp:segment_search keyword="stuff|puff"}}{/if}

Search ALL segments for the absence of the words “stuff” and “puff”.

{if {exp:segment_search keyword="not stuff|puff"}}{/if}

Search segments 1-3 for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff" segments="1|2|3"}}{/if}

Search ALL segments except 1-3 for the presence of the word “stuff”.

{if {exp:segment_search keyword="stuff" segments="not 1|2|3"}}{/if}

Search segments 1-3 for a number using regex.

{if {exp:segment_search keyword="/\d+/" segments="1|2|3" regex="yes"}}{/if}

Search the last segment for P and a number (a pagination page) using regex.

{if {exp:segment_search keyword="/P\d+/" segments="last" regex="yes"}}{/if}

Download Segment Search

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0.0 Feb 9, 2011

Segment Search Links

This entry was created February 9, 2011, 4:57 pm.
This entry was last updated June 9, 2013, 9:26 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

3 Reviews:

Jules6120 10.28.13

Rating - {addon_rating_average}

This really got me out of a bind. Brilliant stuff. Thanks for giving this to the community.

Sam Sullivan 10.09.12

Sam Sullivan
Rating - {addon_rating_average}

Thanks Rob! it sorted out my pagination a treat.

jtrascap 07.11.12

Rating - {addon_rating_average}

Brilliant - needed something unique for new site and it hit the spot.