Tags:
create new tag
, view all tags

Question

Dear TWiki hackers,

I want to use TWiki for some room booking application. I've got one topic per Room and a ListItem like : * : hh:mm-hh:mm - within each topic. With a nice %CALENDAR% ...

I try to summarize in another topic the day use for all the rooms. Using I manage to find used room but I failed extracting specifics lines from the ListItem matching "room booking for today". I tried hard to read doc, support, ... but failed.

I am not sure I can do it with because it is topic based search so I tried with

Warning: Can't find topic ""."" selective include :

Warning: Can't find topic Support.Room1 <-- this is the last try but only manage to get the whole list frown It might be a problem with my use of regex or my understanding or

Warning: Can't find topic "".""

As far as I undersand it with

Warning: Can't find topic ""."" I can extract par of the text but not various lines like :

  • 24 Jul 2003 - 8:30-10:30 blabla1
  • 25 Jul 2003 - 8:31-10:31 blabla2
  • 24 Jul 2003 - 10:30-12:30 blabla3

If today il 24 Jul I want to extract line 1 and 3 but not 2 of this specific topic.

Tanks for help !

  • TWiki version: 01 Feb 2003
  • Perl version: 5.8.0
  • Web server & version: apache 1.3.27
  • Server OS: Linux 2.4.21 (debian)
  • Web browser & version: Mozilla 1.4
  • Client OS: Linux

-- GuillaumeVernat - 25 Jul 2003

Answer

With a FormattedSearch and $pattern(.*(\s\*\s24 Jul 2003[^/n/r]+).*) you only get one entry per topic.

This is not yet in the core code, but you would need MultipleSearchesInSameTopic.

-- PeterThoeny - 26 Jul 2003

Topic revision: r2 - 2003-07-26 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.