Dynamic Web Pages: deutschsprachiger PHP Knotenpunkt seit 1999

Dynamic Web Pages : tutorials _





 
 
 
 
 
 
 

PHP QuickRef

Via QuickRef gelangen Sie direkt zur gesuchten Funktion im Handbuch.

 
 

Printmedien

PHP-Magazin
Das PHP Magazin erscheint 2-monatlich zum Preis von 9,80 €. Studenten erfreuen sich über ermäßigte Abos.

PHP-Journal
Das PHP Journal erscheint 2-monatlich zum Preis von 14,95 €. Studenten und Abonnenten erfreuen sich über bis zu 25% Ermäßigung.

PHP Solutions Magazin
Das PHP Solutions Magazin erscheint alle 3 Monate zum Preis von 8,75 €. Studenten erfreuen sich über ermäßigte Abos.

PHP-Architect
Der php|architect erscheint monatlich als digitale PDF-Version zum Preis von $3,99 USD und als Print-Version zum Preis von $8,69 USD. Im Abo gibt es Rabatt (30% Print, 15% PDF).

 
Tutorials: Regulaere Ausdruecke
Tutorial in dieser Kategorie hinzufügen
Beyond black magic: Regex gotcha (453 Zugriffe)

Personally I love using regular expressions. It simply the best way to parse/split/replace/validate pieces of text. Many people look at regular expressions as black magic. They might be able to create a regex, but don’t understand the flow. When you are creating more advanced expressions, it is important to understand the inner workings for many reasons, including performance.

Let’s have a look at the following regular expression: ^(d+)(d+)(d+)$. It matches one or more digits and does that three times. It is an illogical expression, but bear with me.

Tutorial kommentieren  Defekten Link melden

 
Parse with regular expressions (522 Zugriffe)

As mentioned earlier, you can not parse any recursive structures using regular expressions, because they miss some essential features, like a stack, recursion, or similar.

But in this blog post I also told, that PCRE implements a superset of regular expressions, so that you are able to "parse" more languages, then just regular ones. If someone could send me some proof, which language types can be matched using regular expresions, I would be happy - maybe just implement a turing machine with PCRE regular axpressions?

Tutorial kommentieren  Defekten Link melden

 
Do NOT try parsing with regular expressions (754 Zugriffe)

Some days ago somebody joined a german IRC channel where we try to help others using PHP, where I hang around for some years now, and had some problems with his regular expressions he tried to use to "parse" BBCode he wants to use in his custom application. I answered something like:

It is impossible to parse a language like BBCode with regular expressions because you only may parse regular languages using regular expressions.

The usual reaction: No reaction. No belive. Some days later nearly the same question again, from the same guy, same answer by me, same result. No, not really the same result, I decided to try to summarize the reasons for this in a small blog post.

Tutorial kommentieren  Defekten Link melden

 
Regular Expressions and Validation (969 Zugriffe)

Regular Expressions are a popular way of performing complex string matching on variables. To anyone who is relatively new to them though, it can be daunting. This guide shows how to use them, with examples for using them in validation techniques.

Tutorial kommentieren  Defekten Link melden

 
The Joy of Regular Expressions [1] (966 Zugriffe)

Was asked recently if I knew of any good regular expressions tutorials (preferably in PHP). The question came from someone certainly smart enough to "get" regular expressions but they’d been unable to find accessible help.

Tutorial kommentieren  Defekten Link melden

 
The Joy of Regular Expressions [2] (1099 Zugriffe)

So continuing the fun, Harry Fuecks shows how to deal with RegExp!

Tutorial kommentieren  Defekten Link melden

 
The Joy of Regular Expressions [3] (924 Zugriffe)

Following on from the last part, this one is more of an intermission—a round up of regex syntax seen so far and a couple of links following feedback.

Tutorial kommentieren  Defekten Link melden

 
Introduction To Regular Expressions In PHP (1847 Zugriffe)

In Linux and Unix, the syntax that is commonly used by many applications for specifying text patterns is known as regular expressions or in short form - regex.

Tutorial kommentieren  Defekten Link melden

 
Form Checking - Verifying Name Using PHP Ereg (1808 Zugriffe)

One important use of Regular Expressions (Regex) is to verify fields submitted via a form. In this article, we attempt to write an expression that is able to verify the user's first name, middle name, last name or just names in general.

Tutorial kommentieren  Defekten Link melden

 
Regular Expressions in PHP (910 Zugriffe)

Regular Expressions (regex for short) appear to a lot of people as the 'black art' of coding. Most languages, be it PHP, Java, C, .NET, VB etc have a way of using regular expressions - and they can certainly make your job easier. So lets start on our journey into regular expressions. I am by no means an expert, but hopefully I'll be able to clear the fog that surrounds regular expressions!

Tutorial kommentieren  Defekten Link melden

 
zurück

Folge DynamicWebPages!

PHP News als RSS abonnieren ...
Auf Twitter folgen ...
Fan werden auf Facebook ...

 
 

PHP Newsletter

Bleiben Sie immer "Up-To-Date" mit unseren Newslettern!

PHP Newsletter
PHP Trainingsletter

 
 
 
 
 
 

PHP Releases

 
 

Sponsoren

 
 
 
   
powered by Hetzner


top Alle Rechte vorbehalten. © Dynamic Web Pages 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 top

  Seitenaufbau in 0.047 Sekunden