preg / regular expressions ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

preg / regular expressions ?

Post by evilcoder »

hey guys, just have a small question. What do these regular expressions look for?

thanks :)

Code: Select all

#\{((їa-z0-9\-_]+?\.)+?)(їa-z0-9\-_]+?)\}#is

#\{(їa-z0-9\-_]*?)\}#is

#\<begin (.*?) \/\>#
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Text.
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

text within something? as in, text within {} ??
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

*refresh*
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

probably wrong but:

1) {anything.anything}
{anyhing}
{}
2) {anything}
3) <begin anything />

probably wrong, but owell!
Post Reply