php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18306 Replace [a-z]
Submitted: 2002-07-12 07:55 UTC Modified: 2002-07-12 08:09 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: webmaster at webgrauen dot de Assigned:
Status: Not a bug Package: *Regular Expressions
PHP Version: 4.2.1 OS: Linux Apache1.3.23
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 + 15 = ?
Subscribe to this entry?

 
 [2002-07-12 07:55 UTC] webmaster at webgrauen dot de
It works only with upercase letters.

This will replace letters in upper cases if you type more as 5 in a row(This do parse guestbook entries). But it dont work with lower cases.

$HTTP_POST_VARS[message]= preg_replace("/([A-Z]{5,})/","\t\t","$HTTP_POST_VARS[message]");

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-12 08:09 UTC] derick@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC