Search found 8 matches

by the_d00d
Mon Dec 15, 2008 5:22 am
Forum: PHP - Code
Topic: Rewriting to Zend framework
Replies: 0
Views: 80

Rewriting to Zend framework

We're running a shop and currently we have our URL structure like this: http://www.example.org/category/item/item-id We use Zend_Controller_Router_Route_Regex to grab all the requests and pass it to the right controller/action. All was fine until we wanted to make the category part the subdomain, so...
by the_d00d
Sat Dec 06, 2008 2:53 pm
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

prometheuzz wrote:

Code: Select all

<(?:[a-z0-9_]*?)(?:\,(?:[a-z0-9_]*?)(?:\="[^"]*")?)*?>
Sweet! I'm going to have to try that out tomorrow!
prometheuzz wrote:Out of curiosity, are you implementing this in PHP or some other language?
Yes - I am making the application in PHP.
by the_d00d
Sat Dec 06, 2008 11:37 am
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

prometheuzz wrote:...
Wow. Pretty intense. Thanks!

One problem I initially see is that I would have to do additional parsing once the regex finds everything - my initial regex broke everything up into nice manageable pieces which is why I thought I might just be able to amend the end of the initial regex :-)
by the_d00d
Thu Nov 27, 2008 4:27 am
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

mintedjo wrote:That seems to work for all examples you gave... but its horrible.
Yes, it does make ones eyes hurt :(
mintedjo wrote:If your lucky a guy called prometheuzz might see your post and contribute.
Hes some kind of regex wizard.
Cool. I hope he, or some other regex guru, sees this plea for help!
by the_d00d
Thu Nov 27, 2008 3:04 am
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

Haha Well if you want help with the regex it would be better if i could see a larger and more varied chunk of the code so i know exactly what It has to deal with. xD Umm, not quite sure what you mean, but okay. <name,type="array",value="Paul",value="George",value="...
by the_d00d
Wed Nov 26, 2008 10:38 am
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

mintedjo wrote:Can you post a bigger chunk of the template language? :-)
No-it's full of bugs and in a very raw state. One of the bugs being this one ):
by the_d00d
Tue Nov 25, 2008 1:40 pm
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Re: Custom template variable goes too far into string

Anyone have any ideas? :oops:
by the_d00d
Sat Nov 22, 2008 8:26 am
Forum: Regex
Topic: Custom template variable goes too far into string
Replies: 14
Views: 3560

Custom template variable goes too far into string

Hello, I am in the incredibly early stages of writing a quick template language, just for quick project and ran into a bit of a problem. I want to match tags such as: <foobar>, <forbar,bar,foo> and <foobar,foo="<foo>",bar,foobar> And the regex I have for this is: <(?:[a-z0-9_]*?)(?:\,(?:[a...