interesting problem with preg_replace
Posted: Sat May 11, 2002 3:21 pm
Hi. Maybe someone can help me here. I think I need to use preg_replace, but I am not positive how to do this.
I have a site that isn't live yet, allfreecruit.com, that posts jobs to about 100 sites. Even though we ask not to post a direct link or email address in the job description, employers will do it anyways. The job will be posted to other job sites, like hotjobs.com, flipdog.com, etc. Before the job is posted to these jobboards, I will want to be able to search the job description and replace any link or email address with a link back to the job posted on AllFreecruit. So for example, if this is the job description:
Searching for a job in the design field? Please visit our site for the job listing at http://www.fakeurl.com
I would want to replace http://www.fakeurl.com with http://www.allfreecruit.com/jobid=1.html
so the job would look like this:
Searching for a job in the design field? Please visit our site for the job listing at http://www.allfreecruit.com/jobid=1.html
Could anyone help me out with this, I need some help coding this but I am having problems figuring it out.
Thanks.
Rachel
I have a site that isn't live yet, allfreecruit.com, that posts jobs to about 100 sites. Even though we ask not to post a direct link or email address in the job description, employers will do it anyways. The job will be posted to other job sites, like hotjobs.com, flipdog.com, etc. Before the job is posted to these jobboards, I will want to be able to search the job description and replace any link or email address with a link back to the job posted on AllFreecruit. So for example, if this is the job description:
Searching for a job in the design field? Please visit our site for the job listing at http://www.fakeurl.com
I would want to replace http://www.fakeurl.com with http://www.allfreecruit.com/jobid=1.html
so the job would look like this:
Searching for a job in the design field? Please visit our site for the job listing at http://www.allfreecruit.com/jobid=1.html
Could anyone help me out with this, I need some help coding this but I am having problems figuring it out.
Thanks.
Rachel