11
RicoCali
Re: Error: Could not open lock file
  • 2004/2/17 10:52

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Simonvl,

Did you ever solve this problem? I did everything also, still nothing.

Rico



12
RicoCali
Re: Need help from Regular Expression Guru
  • 2004/1/14 1:04

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Thanks Dave...that really got me into looking at modifiers...I tried (?s)foobar3.+foobar6 also and that worked. Thanks again.



13
RicoCali
Re: Business Directory Created
  • 2004/1/13 20:40

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Thats a very professional looking site builderb. I would have to say that folsomliving and gainingmass are one of the two best XOOPS sites I've seen so far. You need to get some content though :). Looks like we use to be neighbors...I use to live in Placerville



14
RicoCali
Re: Need help from Regular Expression Guru
  • 2004/1/13 19:58

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Well basically (without getting into to too much detail) I have a process that hits certain sites for information. The problems is this phrase can be in more than one line...sometimes three. I thought about just stipping all the linefeeds once I read the page into a buffer. But I don't want to do that if i don't have to. It seems to me that for the regex to work that you (Dave) have specified, I have to explicitly specify "\s*" for each line feed. Again with this example:

foobar1 foobar2
foobar3 foobar4
foobar5 foobar6
foobar7 foobar8
foobar9 foobar10


...I wish i can do something like this:

^foobar3.+foobar6$...where ".+" accounts for linebreaks as well. This would be more prefered to me because i don't know how many lines this phrase will take. Unfortuneately the Regular Expression I presented doesn't behave the way I want it to.



15
RicoCali
Re: Need help from Regular Expression Guru
  • 2004/1/13 15:49

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Skalpa's regex didn't work. My concern is how do you wildcard muliple linebreaks as a match. With Dave's method it appears that you have to explicitly specify this (\s*) for "each" linebreak to get your result. Which is OK with me. I just want to know if there is a way to do this.

Can this be simplified?:

^.+\s*.+\s*.+\s*.+\s*.+\s*.+\s*.+\s*.+\s*.+\s*.+\s*



16
RicoCali
Re: Need help from Regular Expression Guru
  • 2004/1/13 5:08

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Thank you Dave...That worked perfect! But I got another question... I also tried this:

if (preg_match('/foobar2\s*foobar4/', $text)){
echo "Matched\n";
}else{
echo "Not matched\n";
}


...to match on

foobar2
foobar3
foobar4


...but this syntax was the only thing that seems to work:

if (preg_match('/foobar2\s*foobar3\s*foobar4/', $text)) {
echo "Matched\n";
} else {
echo "Not matched\n";
}


...is there a condense way to do this?



17
RicoCali
Need help from Regular Expression Guru
  • 2004/1/13 4:37

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


I have an example below:

foobar1
foobar2
foobar3
foobar4

How do I do I use regular expression that finds a match on foobar2 preceding foobar3?

I tried:

^foobar2$^foobar3$

..but that doesn't work. I've checked all the forums and I can't seem to find a solution for this



18
RicoCali
Re: One Large Pitfall of Smarty
  • 2004/1/5 1:22

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Quote:

MithyT2 wrote:
It's still better than having an all-PHP file which won't show ANYTHING unless it is running on a webserver.


If you dynamically generate static html then that is the case. Not a productive paradigm. If you keep static html static and dynamically create content then that is the correct paradigm. You don't need Smarty to do that. But Smarty proves to be this correct paradigm. But I don't think its heaven to develop the presentation layer using Smarty because no one supports it (from an IDE). If anyone can give me any tips that they have learned to make their life easier with Smarty templates from the presentation layer stand point I would appreciate it.



19
RicoCali
One Large Pitfall of Smarty
  • 2004/1/4 19:49

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Smarty is a great templating idea as it abstracts and separates content and presentation. The only problem is that there is not one IDE to support this. You are developing the presentation layer with your eyes close. For example <{$xoops_imageurl}>. Anyone know of "any" tool that can visually represent that reference so you can see how your presentation layer looks like? Also, <{include file =...}>. I see that everywhere and when you bring it into a WYSIWYG editor you are better off looking at it in notepad. Yeah I know, you can "temporarily" use the abosulte reference. But what's the point? That's just more tedious work prone for errors. So how does that make smarty a productive paradigm in terms of the presentation department?



20
RicoCali
Re: Does anyone have a copy of Glossaire on XOOPS 2?
  • 2003/12/30 14:38

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


I got a bit of a problem with it. Everything is in French and I can't find the switch to change the language to English.




TopTop
« 1 (2) 3 4 5 ... 11 »



Login

Who's Online

253 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits