OZONE Asylum
FAQ
Regular Expressions. What?
This page's ID:
5583
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "Regular Expressions. What?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
"Regular expressions are a method of defining string sets" - [small][internallink=4643]Tyberius Prime[/internallink][/small] That means that a regular expression could say 'Ever string starting with an 'B' and ending in a 'N'... or every string Starting with 'Ba', followed by 1 to n 'na'... ie. 'banan', 'ban','bananana'. For this the commonly used 'perl style regular expressions' (see php manual entry of same name) establish a somewhat cryptic, but powerfull syntax. Most characters just mean 'this character'. There are a few 'special' characters, that need to be escaped with a backslash () if you want to have them have their 'character meaning'. Special Characters: . - any character (but usually not including a newline) + - one or more of the preceding pattern * - zero or more of the preceding pattern (maybe I should first explain what a 'pattern' is?) sorry, being continously interrupted... I'll finish it off later. Or maybe someone else will. --[internallink=4643]Tyberius Prime[/internallink] [internallink=4626]Emperor[/internallink]: We already have a regular expressions FAQ entry and it would seem to make sense to add this kind of thing to a more general FAQ: [internallink=5148]Can you help me understand regular expressions?[/internallink] _____________________________ [internallink=4643]Tyberius Prime[/internallink]: Sure, move it around, or I'll move it later. seems the earlier faq was not where I looked for it. Oh well. Wait, know I remember! I wanted to write a regular expressions with php quick tutorial... your call where we put the subtopic of this one. [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Mon 10-Mar-2003)[/i][/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »