Search found 9 matches

by SchweppesAle
Wed Jun 17, 2009 4:24 pm
Forum: Regex
Topic: PHP Regex word boundary pattern ignores / in urls
Replies: 2
Views: 1844

PHP Regex word boundary pattern ignores / in urls

hi, I'd like to correct the following REGEX pattern so that it no long effects urls or text proceeded by a forward slash / example, the following preg_replace will take the string reviews/payroll-relief-from-accountantsworld.html payroll and assuming payroll is the needle, it will return reviews/<a ...
by SchweppesAle
Mon Jun 01, 2009 4:11 pm
Forum: Regex
Topic: word boundary won't seem to work.
Replies: 7
Views: 2110

Re: word boundary won't seem to work.

perfect,

Thanks a lot, that was actually much easier than I thought it would be.
by SchweppesAle
Mon Jun 01, 2009 1:12 pm
Forum: Regex
Topic: word boundary won't seem to work.
Replies: 7
Views: 2110

Re: word boundary won't seem to work.

sorry, I'd like to see the following   <p><a href = "http://www.theprogressiveaccountant.com/">test</a></p><p><a href = "http://www.pmgb2b.com/">blah</a></p><p><a href = "http://www.yahoo.com/">ok</a></p>   etc etc. basically I have two arrays and a string. It should cy...
by SchweppesAle
Mon Jun 01, 2009 11:25 am
Forum: Regex
Topic: word boundary won't seem to work.
Replies: 7
Views: 2110

Re: word boundary won't seem to work.

Hard to say without seeing the input string. Can you post it? Also post what the desired result should be and what result you are currently getting. sure thing. Here's the Input String:   <p> test</p><p>test</p><p>blah</p><p>ok</p><p>test test >test< blah</p><p>blahokblah </p><p>&nbsp;</p><p>bl...
by SchweppesAle
Fri May 29, 2009 1:31 am
Forum: Regex
Topic: word boundary won't seem to work.
Replies: 7
Views: 2110

word boundary won't seem to work.

hi, I'm using the following pattern in order to append links to specific words within an array. However the pattern I'm using seems to completely ignore the word boundary.   $keywords = $this -> params->def('keywords');         $words = explode(",", $keywords);                 $keywordLink...
by SchweppesAle
Fri Aug 15, 2008 4:04 am
Forum: PHP - Code
Topic: PHP noob question :P
Replies: 6
Views: 345

Re: PHP noob question :P

lol, yea i just found out the hard way. it's ok though, I just used a standard html link, suites my purposes fine 8)
by SchweppesAle
Fri Aug 15, 2008 3:00 am
Forum: PHP - Code
Topic: PHP noob question :P
Replies: 6
Views: 345

Re: PHP noob question :P

blah, I just split everything up. It works fine, I'd still like to know if there's a way to execute methods via some html button though basically I pulled the Jobs.php file apart and modulated the application by creating seperate php files. I then included the Query.php file in my index.php file Que...
by SchweppesAle
Fri Aug 15, 2008 2:49 am
Forum: PHP - Code
Topic: PHP noob question :P
Replies: 6
Views: 345

Re: PHP noob question :P

hmmm...I think I understand-how would I execute the insert method upon placing it into the Jobs.php file. An easier solution for me would be to simply create Insert.php then place the appropriate algorithm-I'd like to make use of functions if possible though. Is there anyway to force the submit butt...
by SchweppesAle
Thu Aug 14, 2008 11:52 pm
Forum: PHP - Code
Topic: PHP noob question :P
Replies: 6
Views: 345

PHP noob question :P

Yea, so most of my experience thus far has been geared towards Java. I only just started working with "proper" html(CSS), PHP & MySQL. I'm trying to create an HTML form which forwards the information given to a php method via $_Post. here's the code:   <?php include("Jobs.php"...