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
| July 2026 |
| |
|
|
01 |
02 |
03 |
04 |
| 05 |
06 |
07 |
08 |
09 |
10 |
11 |
| 12 |
13 |
14 |
15 |
16 |
17 |
18 |
| 19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 26 |
27 |
28 |
29 |
30 |
31 |
|
|
...
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
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