# Explain ereg\_replace and stuff

**URL:** <https://forum.kirupa.com/t/explain-ereg-replace-and-stuff/161761>\
**Category:** programming\
**Created:** [September 6, 2005, 11:15pm UTC](https://forum.kirupa.com/t/explain-ereg-replace-and-stuff/161761 "2005-09-06T23:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cholin](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cholin](https://forum.kirupa.com/u/cholin)\
**Post date:** [September 6, 2005, 11:15pm UTC](https://forum.kirupa.com/t/explain-ereg-replace-and-stuff/161761/1 "2005-09-06T23:15:26Z")

</div>

Alot of times I see functinos such as ereg\_replace and preg\_replace being used. Now, the PHP manual explains how to use them but it doesnt quite clarify how to use the string. Ive seen things like (+.?) or something used, and #msi, and Im confused! Someone feel like explaining or at least pointing me to a site?
