Hi,
I am using the following:
[0-9]{4} [A-Za-zÅØ]{2,20}
to extract data like:
1000 Øslo
How can I alter the above to limit to ONLY 4 digits, or in other words
exclude:
11000 Beograd
Please note that what I am extracting from is NOT at the begining of a
line, so I can't use the ^ first.
A
>>> > I have this bit of text:
>>> > (\(EX\) RV-6 )
>>> >
>>> > I want to remove the '\(EX\)' part of it
>>> > so leaving just: ( RV-6 )
$text = '(\(EX\) RV-6 )';
$str = str_replace('\(EX\)','',$text);
As Burhan put it, regex is not always the solution to your problem -
in most cases, using re
times, but the pattern is
always the same.
Cheers
Alexis
Murray @ PlanetThoughtful wrote:
On 9/02/2006 12:29 AM, phplists wrote:
Thanks for that...and yes that would do very nicely.
Unfortunately, for what I'm trying to do, it is of little use. I
probably should have mentioned that the
of it. Hence the REGEX question.
But, I still agree with you 100% about keeping things simple :o)
Thanks
Alexis
Burhan wrote:
phplists wrote:
Hi,
I'm still trying to get to grips with REGEX and have hit a hurdle with
the following:
I have this bit of text:
(\(EX\) RV-6 )
I want to
tern which should match is '/\\\(.*?\)\\/',
the mess of \ is because \ ( and ) all need to be escaped with a \.
David
phplists wrote:
Hi,
I'm still trying to get to grips with REGEX and have hit a hurdle with
the following:
I have this bit of text:
(\(EX\) RV-6 )
I want to rem
Hi,
I'm still trying to get to grips with REGEX and have hit a hurdle with
the following:
I have this bit of text:
(\(EX\) RV-6 )
I want to remove the '\(EX\)' part of it
so leaving just: ( RV-6 )
Any suggestions would be most appreciated.
Thanks
Alexis
--
PHP General Mailing List (http://
If your browser is trying to download the file it's because the web server
isn't configured to recognize the file type. In your httpd.conf file you
should have a line similar to the following:
AddType application/x-httpd-php .php .php3 .phtml
In order to do what you are wanting, you also need a
Sounds like an MTA issue. You should find out which MTA it is and look at
their support site..
Sendmail has a feature that will rewrite the domain on all outgoing
addresses unless the user sending out is a 'trusted' user.. That could be
the problem you are experiencing. You should certainly have
http://woodenpickle.com:8080/shop/admin.php
login: shopadmin
pass: demo
Later,
Bob
"Robert Collins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can anyone recommend a good commercial shopping cart written in php?
>
> Robert W. Collins II
> Webmaster
> Ne
Check out the code section at Zend.com.. There is at least one CCVal
function there.. I think two.. I do believe hotscripts.com has some too in
their PHP section..
Later,
Bob Weaver
"Jas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need to know if there
http://httpd.apache.org/docs/configuring.html#htaccess
http://apache-server.com/tutorials/ATusing-htaccess.html
Use this to enable username and password access to phpMyAdmin.
Later,
Bob
"Mantas Kriauciunas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey
You should be able to find whatever you need here:
http://httpd.apache.org/docs-project/
Later,
Bob
"Adrian Murphy" <[EMAIL PROTECTED]> wrote in message
001d01c1e45e$e5d53ae0$02646464@ade">news:001d01c1e45e$e5d53ae0$02646464@ade...
Hi,
I use wildcard dns to point all requests at the root e.g
wh
Check out the MySQL page at
http://www.mysql.com/doc/F/u/Fulltext_Search.html. This page talks about
doing full-text searches through your data. Then you can implement the
queries using PHP scripts to perform the searches.. It works super smooth..
You do have to create an index of any column you w
Crystal Reports?
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hey ppl,
>
> I need to create some fairly complex graphs dynamically, and I need to be
> able to specify line, bar, or pie charts. Are there any PHP packages that
> someone co
Yeah, I actually used to have a couple accounts with linuxwebhost.com...
They are nice and fast.. I just like the ability to be able to compile and
install my own software on the server..
Later,
Bob
"Eat Pasta Type Fasta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTEC
http://webpipe.net
They seem to be doing good with uptime.. In the last couple months I've been
having a monitoring service check them frequently and so far we're at 100%..
Standard Virtual Package ($24.95/mo - $14.95 setup):
Linux RedHat 7.1
300mb Disk Space
25 POP3 Accounts
10GB/mo transfer
St
Yeah, this really has nothing to do with PHP.. The Javascript question you
ask can be answered with a simple query at
http://www.google.com/search?hl=en&q=select+onchange
As for the other, can't help.. You should try an HTML group..
Later,
Bob
"Vladislav Kulchitski" <[EMAIL PROTECTED]> wrote in
http://webpipe.net
They seem to be doing good with uptime.. In the last couple months I've been
having a monitoring service check them frequently and so far we're at 100%..
Standard Virtual Package ($24.95/mo - $14.95 setup):
Linux RedHat 7.1
300mb Disk Space
25 POP3 Accounts
10GB/mo transfer
St
function someCommand()
{
global $var1, $var2, $var3;
stuff();
}
I think you could also use define(); maybe..
Later,
Bob Weaver
"Paul Roberts" <[EMAIL PROTECTED]> wrote in message
00f301c1e311$fa421af0$dde5883e@laptop1">news:00f301c1e311$fa421af0$dde5883e@laptop1...
Is there a quick way to
My mistake, you have the directory line correctly written with the forward
slash.. But the hosts file should not have any extension..
Bob
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to make sure the hosts file in c:\windows is called just hosts
wit
This works:
" width=150 height=100 border=0>
This works too if you're not opposed to using straight php:
\n\nImage Switch\n";
print "\n";
print "\n";
?>
Later,
Bob Weaver
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to set
You need to make sure the hosts file in c:\windows is called just hosts with
no extension.. Just rename it.. It may also take a reboot and/or some time
for windows to start using it properly.. And it may help to change the
forward slash in to a backslash..
Later,
Bob
"Tiago SimõEs" <[EMAIL PROT
$headers = "Content-type: text/html\n";
$fromEmail = urlencode( $dbQuery->adminEmail );
$subject = "Your new eStore is ready!";
$message = "::name::,
Your new eStore is ready at http://woodenpickle.com/shop\";>http://woodenpickle.com/shop.Y
ou can open the admin panel for it at the following link
Yeah, basically, in your httpd.conf file you specify the DocumentRoot for
your Apache installation. Then whatever dirs are below that inherit the
AddType(s) and such of the parent. You can add different dirs individually
if you want. Just add the following to your httpd.conf file (you can put
them
Check out the cart at survivalherbs.com.. It's all just php... It uses a
template for the page look (which hasn't been edited on that site yet).
"Eugene Lee" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Apologies if this is an oft-repeated question, but coul
Nevermind.. I wasn't being very smart.. I got it..
Thanks,
Bob
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have got this almost all the way where I need it.. Partly from the
php.net
> function list and partly from searching the archives here.. Now I'm at
I have got this almost all the way where I need it.. Partly from the php.net
function list and partly from searching the archives here.. Now I'm at a
point where I don't quite know how to finish it.. Any help would be greatly
appreciated.
I use functions to gather the subdirectory names in the cw
Refer to my earlier post about your AddType entries.. If they are not there,
before you add them, check for a file on your system called mod_php4.conf..
If you find it, it will have the required entries in it already.. If this is
the case, make sure your modules section in httpd.conf is configured
It sounds like the Apache/httpd server config info for PHP files has been
lost/changed/deleted/overwritten.. If you are using Apache make sure you've
got your AddType line(s) in the right place (there should already be some
AddType and AddHandler lines in there.. put them in by the others) in the
Wow, you really feel like your better than everyone here don't you.. You
rarely even give an answer that isn't blatent criticism of what someone
posted or their ability to find information. You really need to stop.
Bob
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:
There are actually a couple at least listed here.. I don't know which are
best but the one that my shopping cart uses is one of these one.. I believe
it's this one: http://zend.com/codex.php?id=619&single=1
Yeah, after I looked at it, it is that one.. Adam Olsen is my programmer..
Duh.. I forgot
Do you have something against using a class for interaction with the
Authorize.net URL you are trying to open? It is possible to pass vars to the
page I'm sure but a class would work better in most cases and automate the
process for the customer.
Later,
Bob
"David Johansen" <[EMAIL PROTECTED]> w
First things first, when you say domain.com/home/adam do you mean
/home/httpd/htdocs/home/adam or /home/adam/public_html.. Once you know that
you can make a more educated decision.. Either way, you should be able to
specifiy DocumentRoot /home/adam/public_html or DocumentRoot
/home/httpd/htdocs/ho
33 matches
Mail list logo