> >
META TOPICPARENT
name="FormattedSearch"
Search Pattern Cookbook
The Search function in TWiki is very powerful. Especially searches using a RegularExpression play an important part of tapping TWiki's full potential. Unfortunately RegularExpressions can be incredibly obscure to the uninitiated.
Most people not familiar (enough) with Regular Expressions mostly cut and paste (and maybe tweak) from existing examples. This page intends to collect lots of examples together.< < > > > > <-- ==========================
-->
Pattern 1: Extract values from a table
Problem definition How to extract the 'name' values, i.e. 'option1', 'option2' and 'option3' and put them in a HTML form select input?
Solution > > The following search pattern can be employed:
<form>
<select> < < option1
option2
option3 > > option1
option2
option3
which is, in effect:
< < option1
option2
option3 > > option1
option2
option3
< < > >
<-- ==========================
-->
Pattern 2: List generated from form classification
Problem
%SEARCH{"[T]opicClassification.*value\=.*Two;[T]opicStatus.*value\=.*%URLPARAM{type}%" < < regex="on" casesensitive="on" nosearch="on" > > type="regex" casesensitive="on" nosearch="on" format=" * $topic -
last modified by $wikiusername on $date
$formfield(TopicStatus ) " Filter:
< < %SEARCH{ "^\|[^\|]*\| *option *\|" topic="TopicClassification" web="TWiki" regex="on" > > %SEARCH{ "^\|[^\|]*\| *option *\|" topic="TopicClassification" web="TWiki" type="regex" multiple="on" nosearch="on" nototal="on" format="(.?) \|. )>$pattern(^\| (. ?) \|. ) " }%
All pages
This will create similar functionality as TWiki:Plugins.TopicClassificationAddOn < < > >
<-- ==========================
-->
Pattern 3: Creating lists of TWiki usernames
Problem
Solution 3: Appropriate for TWiki 4 (Dakar) > > When the User information is stored in a UserForm (as is default in Dakar) then this list can be generated as follows:
<form name="testing" action="%SCRIPTURLPATH{"view"}%/%MAINWEB%" method="get">
<select name="topic">
<option>Select user...</option> < < AafiyaKhan
AaronFinch
AaronTetteh
AbhimanyuVerma
AbsoluteDigitizing
AdamHebrew
AditiboseDwarka
AjaySharma
AkshatSharma
AlFarajiOil
AlexaThomas
AlfredLucas
AliceAddy
AlicePerrir
AliciaForster
AlinaChopra
AlinaMalik
AlliedVeterans
AlvisMartin
AlyssaHealy
AmaraAndra
AmeeliaBrown
AmyPetit
AndrewHardy
AnilSutar
AnishaPawar
AnjaliBhatt
AnnyBank
AnuSaxena
AnupreetKaur
AnushkaDelhi
AnushkaMahipalpur
AnyaHarmon
AplokoMikolpmm
ArpitaJain
AshelyPatel
AshikaSingh
AshishBairwa
AssignmentExperts
AttwyeeigAttwyeeig
AustinRex
AustraliaescortAustraliaescort
AvivaNixon
AxelSmith
BabatuLili
BarneyStinson
BeesControlPerth
BelaVous55
BestCarpetCleaningBrisbane
BestCarpetCleaningHobart
BestCarpetSteamCleaningMelbourne
BestDigitalMarketingCourse
BestDuctCleaningMelbourne
BestKitchenKnives
BestMovements
BestPestControlHobart
BestPestControlMelbourne
BestPestControlSydney
BestTileAndGroutCleaningBrisbane
BestUpholsteryCleaningMelbourne
BestUpholsteryCleaningPerth
BestassignmentService
BillCamp
BillyCrystal
BinetaAmadouTidianeDIA
BinodKarki
BlessingsNaggayi
BlogSdti
BloggingIdeas
BloggingabBloggingab
BluetreeWeb
BondcleanCo
BrendaZamora
Bull18Cleaners
BusinessByShoutInAustralia
CBDMoversSydney
CaledonianEscapes
CarefulHandsMovers
CarpetCleaningAdelaide
CarpetCleaningBrisbane
CarpetCleaningCoorparoo
CarpetCleaningFortitudeValley
CarpetCleaningMelbourne
CarpetCleaningPerth
CarpetSteamCleaningNarangba
CarterSofia
CheapEssay
ChempaFrancis
ChoongChai
ChrisGreenwalty
ChristenMulle
CindyWen
Cinoci6414Cinoci6414
ClarkThomas
ConcordeSkipBin
CouchCleaningBrisbane
Cre8tiveBot
CreativeBot
CrishWell
CruzEdwards
CustomJeans
CyrusJonanus
DadadoVeiga
DannyCortez
DarkDale
DarrenMark
DavidHenry
DavidJonesstc
DawudIbrahimIsmail
DearSystems
DefocusStudio
DenielJoshef
DenisGibbs
DennisEffaAmponsah
DepikaKaur
DeptFinance
DerohuterDerohuter
DevilJack
DevinMark
DevinSmith
DianeNash
DianeParker
DiegoWhite
DigitalMarketingAgency
DilipKumar
DissertationHelp
DominicAsiedu
DomyassignmentPro
DonateZakat
DuctCleanersMelbourne
DuctCleaningInMelbournes
DuctCleaningMelbourne
DuctRepairMelbourne
DuctRepairsMelbournes
DylanRoot
DynamicFertility
EMedStore
EasyBege
EasymoveServices
EdemCudjoe
ElectiraJames
EliotPlamondon
ElishaSagoe
ElizaClark
EmmaAllen
EmmaAshley
EmmaFluffy
EmmanuelAwitiKuffour
EmmanuelBaah
ErastusDoh
ErrorsDoc
EscortIndelhi
EssayEmpire
EsteliaLize
EthanLee
EvCalculator
EvelynAudrey
FalshariyaFalshariya
FanweeklyFanweekly
FastPestControlAdelaideFastPestControlAdelaide
FastPestControlBrisbane
FastPestControlCanberraFastPestControlCanberra
FastPestControlHobart
FastPestControlPerth
FastPestControlSydney
FaustinaAbenaAsieduwaaAsare
FinanceWorldWideLimited
FocusPlusNow
FrankAllen
FranmilZSF
FreshDuctCleaningMelbourne
FreshDuctCleaningMelbournes
FreshUpholsteryCleaningPerth
FreshUpholsteryCleaningSydney
FurnitureRemovalistAdelaide
GadgetWiz
GeometrySchool
GeorgeAlex
GiselleKenneth
GlobalFundingDevelopmentHK
GodHank
GotaxGlobal
GreysonAustin
GrgrevGrgrev
GuangGuang
GuriGraphics
HarmitKaur
HarryLeel
HattieJobsHattieJobs
HavenRose
HellyMax
HenrysPestControlBrisbane
HighlightStory
HomeAndFamily
HomeOfDissertations
HopeJames
Hotlistshop1Hotlistshop1
HumHealth
I55axvmjcI55axvmjc
IkeArmah
ImmiSumiya
ImpressivePestControlAdelaide
ImpressivePestControlCanberra
ImpressivePestControlHobart
ImpressivePestControlPerth
IndonesiaescortshubIndonesiaescortshub
IndustryTop5
InnovativeDucks
InstagFollowers
IsaacArmahMensah
J27jyn2eJ27jyn2e
JacobRyan
JaipurEscort
Jalistre21Jakarta
JamesMarcus
JamesPreinter
JareenaService
JarinaLko
JasonRoy
JasonSharp
JaxonHibler
JenniferBrown
JeremiahNsiahAkuoko
JeromeAssistant
JerryDad
JoeHansan
JohnAndersonxz
JohnBidden
JohnCooper
JohnKeet
JohnSmith
JohnSmith123
JohnSmith55
JohnnyDepp
JohnseenaSeena
JollyJoseph
JoneLeo
JonesOmeo
JonoKarney
JosephHarryMensah
JoshuaDollar
JoshuaFoli
JosiahKotey
JosiahTerkper
JuliaWatson
JulianJackson
JustcasuaJustcasua
KamSoft
KangarooCarpetCleaningBrisbane
KaranPrakash
KarlNeon
KashishBabby
KellyEdwards
KennethParker
KewLabs
KiemeoLili
KimberlyKeller
KiranBhatt
KizlikZariDikimi
KnobinDigital
KomalAgarwal
KomalDas
KomalJi
KomalSharma
KumarManish
LahoreCallGirls
LarteyJoshua
LauraJonson
LavanyaKaur
LeatherLand
LeeBrown
LeesaMarteen
LillianEthan
LillyWillor
LillyzPwedsr
LilyJacob
LisaHydan
LiyaSmith
LlizaBearth
LocalCarpetCleaningMelbourne
LocalCarpetCleaningSydney
LoremDesigns
LucasMiller
LucknowModel
LuisFonsi
MackBrown
MajorCarpetCleaners
MalvikaAdhikari
ManishaSharma
ManviKakkar
MarcelMikaelson
MarcellLlerena
MarcoPichler
MarcosAntonioGrecco
MariaGarcia
MarieOrpos
MarkVenom
MarksPestControlAdelaide
MarksPestControlBrisbane
MarksPestControlCanberra
MarksPestControlPerth
MarksTileAndGroutCleaningAdelaide
MarksTileAndGroutCleaningBrisbane
MarsillpostMarsillpost
MartenJames
MartinCamila
MartinPaul
MasajFirsati
Maslerk1Maslerk1
MattressCleaningPerth
MattressCleaningSydney
MaxSmith
MaxWillor
Maxipi5846Maxipi5846
MayankKhosla
MayankKumar
MedicalArts
MelbourneDuctCleanerss
MelbourneDuctCleaning
MelbourneMovers
MelbourneMoversNPackers
MiaHenry
MichaelAdrah
MichaelJordan
MichaelsJohnson
MickyJames
MickyMart
MillerKing
MilziPtriq
Miqan5mcMiqan5mc
MollyParker
MonikaJacob
MonikaJones
MoversMississauga
MrSkill
MrSkillPakistan
MuleTory
MumbaieScortshub
MyDuctCleaningMelbourne
MyMooversQueensland
MyParlr
NancyJones
NancyWilson
NatalieZoe
NathanielAsante
NaveenKumar
NeenaSharma
NehaGupta
NehaPatel
NishaKapoor
NishuChauhan
NoahBeck
NootanArya
OnlineblogsandarticlesOnlineblogsandarticles
OptimoveOptimove
OrderhiveSoftware
PakSmartPanel
PaperWalls
PatriciaDemuth
PawanKuumar
PaySecuri
PerfectlyCleanHomes
PestControlBrisbane
PestControlMelbourne
PeterJohnslc
PhilipSmith
PickleballBin
PiyaSen
PnjSharptech
Portia94Williams
PortiaWilliams
PrbiUbwi
PrinceAcheampong
PrinceAlfredGyan
PriyaBhatt
PriyaSingh
ProfessionalCaProfessionalCarpetCleaningAdelaiderpetCleaningAdelaide
ProfessionalCarpetCleaningArmstrongCreek
ProfessionalCarpetCleaningBrisbane
ProfessionalCarpetCleaningMelbourne
ProfessionalDuctCleaningMelbourne
ProlificStudio
PuneindependentEscorts
QuickAndEasyMoving
RIPRodentControlMelbourne
RajatGupta
RajeshKumar
RankExcel
RaushanKumar
RavenParkerRavenParker
RebeccaSmith
RedbeardShop21
RedialSolutions
ReliableMelbourneAccountants
RickMark
RickyPauls
RimaRani
RitaEssien
RitikaRani
RituSharma
RituSharma4u
RiyaModelgirl
RiyaRoy
RobertDittmers
RohitJadhav
RohtasSaini
RollandAshiteye
RoshniKhanna
RoxaneFabin
RoyJeny
RoyalSydneyRemovals
RubenNetflix
RupalSharma
SaanviMalhotra
SainiSunny
SamBattherford
SamuelOfori
SamyOlogy
SandblogsSandblogs
SanjanaKaur
SanjayKumar7
SanyaMalhotra
SarahWilson
SaumyaGiri
SaumyaGirigirl
SaumyaGirirajput
SeedOut
SeedoutOrg
SeedoutOrganisation
SelasiAyittah
SelasiYegbe
SelectMyTutor
SeoBuilds
SeoCourseInRewari
SeoRankagency
ShandiCabrera
SharmiDey
ShawnJasper
ShawnJell
SheLeader
SheikhAbdullahBinZaid
SheldonCopper
SheryaSehgal
ShoutInAustralia
ShridharAggarwal
SimoneWatson
SkyNetFares
SkyseoTech
SlyAyebila
SmmPakPanel
SmoovlaSmoovla
SoinBeaute
SonamBajwa
SonamSharma
SonuPunjaban
SophieTurner
SpectrumAurora
SpeechLanguagePathologistJobsInNorthHollywood
SpotlessCarpetCleaningSydney
SpotlessDuctCleaningMelbourne
SqueakyCleanSofaMelbourne
SqueakyCleanSofaSydney
SqueakyPestControlMelbourne
StefanHook
SumonaRoy
SunilKumar
SuperAntennas
SushmaSiwan
SyaonJill
SylvanusAyebila
T5lm4layT5lm4lay
TayorKeira
TcasurTcasur
TechinnSolutions
TechnoLom
TeriSteward
TgiaOnline
TheJellyfishBar
TheMPC
ThingsToDoByShoutInAustralia
ThomasLeo
TileAndGroutCleaningMelbourne
TinaKapoor
TipTopCleanTeamBrisbane
TobiMuritala
TopRealEstateBrokerInAustinTx
Topcon4Topcon4
TravXplorer
TravoMojo
UdaipurEscort
UliRaich
UpholsteryCleaningSydney
VaishaliSabale
ValleyGentleDental
ValonAsani
VelmaShackles
VictorCathal
ViphotwebViphotweb
VirtualAssistant
Vocov52331Vocov52331
VodgFoge
W2kr1qgaW2kr1qga
WebnewconWebnewcon
WhatIsAFullStackDeveloper
WilhamOpokuDanquah
WillSmith
WillVenom
WilliamJameson
WilliamSmithh
WilliamWoodruff
WilliamsLeel
WisdomAduhene
XClearVision
Y3yuyri8Y3yuyri8
YamiSharma
Z0l69i9xZ0l69i9x
ZengYang
ZonasOnlineshopping
ZoyaSmith
Number of topics: 519
<--/patternSearchResultCount-->
> > AafiyaKhan
AaronFinch
AaronTetteh
AbhimanyuVerma
AbsoluteDigitizing
AdamHebrew
AditiboseDwarka
AjaySharma
AkshatSharma
AlFarajiOil
AlexaThomas
AlfredLucas
AliceAddy
AlicePerrir
AliciaForster
AlinaChopra
AlinaMalik
AlliedVeterans
AlvisMartin
AlyssaHealy
AmaraAndra
AmeeliaBrown
AmyPetit
AndrewHardy
AnilSutar
AnishaPawar
AnjaliBhatt
AnnyBank
AnuSaxena
AnupreetKaur
AnushkaDelhi
AnushkaMahipalpur
AnyaHarmon
AplokoMikolpmm
ArpitaJain
AshelyPatel
AshikaSingh
AshishBairwa
AssignmentExperts
AttwyeeigAttwyeeig
AustinRex
AustraliaescortAustraliaescort
AvivaNixon
AxelSmith
BabatuLili
BarneyStinson
BeesControlPerth
BelaVous55
BestCarpetCleaningBrisbane
BestCarpetCleaningHobart
BestCarpetSteamCleaningMelbourne
BestDigitalMarketingCourse
BestDuctCleaningMelbourne
BestKitchenKnives
BestMovements
BestPestControlHobart
BestPestControlMelbourne
BestPestControlSydney
BestTileAndGroutCleaningBrisbane
BestUpholsteryCleaningMelbourne
BestUpholsteryCleaningPerth
BestassignmentService
BillCamp
BillyCrystal
BinetaAmadouTidianeDIA
BinodKarki
BlessingsNaggayi
BlogSdti
BloggingIdeas
BloggingabBloggingab
BluetreeWeb
BondcleanCo
BrendaZamora
Bull18Cleaners
BusinessByShoutInAustralia
CBDMoversSydney
CaledonianEscapes
CarefulHandsMovers
CarpetCleaningAdelaide
CarpetCleaningBrisbane
CarpetCleaningCoorparoo
CarpetCleaningFortitudeValley
CarpetCleaningMelbourne
CarpetCleaningPerth
CarpetSteamCleaningNarangba
CarterSofia
CheapEssay
ChempaFrancis
ChoongChai
ChrisGreenwalty
ChristenMulle
CindyWen
Cinoci6414Cinoci6414
ClarkThomas
ConcordeSkipBin
CouchCleaningBrisbane
Cre8tiveBot
CreativeBot
CrishWell
CruzEdwards
CustomJeans
CyrusJonanus
DadadoVeiga
DannyCortez
DarkDale
DarrenMark
DavidHenry
DavidJonesstc
DawudIbrahimIsmail
DearSystems
DefocusStudio
DenielJoshef
DenisGibbs
DennisEffaAmponsah
DepikaKaur
DeptFinance
DerohuterDerohuter
DevilJack
DevinMark
DevinSmith
DianeNash
DianeParker
DiegoWhite
DigitalMarketingAgency
DilipKumar
DissertationHelp
DominicAsiedu
DomyassignmentPro
DonateZakat
DuctCleanersMelbourne
DuctCleaningInMelbournes
DuctCleaningMelbourne
DuctRepairMelbourne
DuctRepairsMelbournes
DylanRoot
DynamicFertility
EMedStore
EasyBege
EasymoveServices
EdemCudjoe
ElectiraJames
EliotPlamondon
ElishaSagoe
ElizaClark
EmmaAllen
EmmaAshley
EmmaFluffy
EmmanuelAwitiKuffour
EmmanuelBaah
ErastusDoh
ErrorsDoc
EscortIndelhi
EssayEmpire
EsteliaLize
EthanLee
EvCalculator
EvelynAudrey
FalshariyaFalshariya
FanweeklyFanweekly
FastPestControlAdelaideFastPestControlAdelaide
FastPestControlBrisbane
FastPestControlCanberraFastPestControlCanberra
FastPestControlHobart
FastPestControlPerth
FastPestControlSydney
FaustinaAbenaAsieduwaaAsare
FinanceWorldWideLimited
FocusPlusNow
FrankAllen
FranmilZSF
FreshDuctCleaningMelbourne
FreshDuctCleaningMelbournes
FreshUpholsteryCleaningPerth
FreshUpholsteryCleaningSydney
FurnitureRemovalistAdelaide
GadgetWiz
GeometrySchool
GeorgeAlex
GiselleKenneth
GlobalFundingDevelopmentHK
GodHank
GotaxGlobal
GreysonAustin
GrgrevGrgrev
GuangGuang
GuriGraphics
HarmitKaur
HarryLeel
HattieJobsHattieJobs
HavenRose
HellyMax
HenrysPestControlBrisbane
HighlightStory
HomeAndFamily
HomeOfDissertations
HopeJames
Hotlistshop1Hotlistshop1
HumHealth
I55axvmjcI55axvmjc
IkeArmah
ImmiSumiya
ImpressivePestControlAdelaide
ImpressivePestControlCanberra
ImpressivePestControlHobart
ImpressivePestControlPerth
IndonesiaescortshubIndonesiaescortshub
IndustryTop5
InnovativeDucks
InstagFollowers
IsaacArmahMensah
J27jyn2eJ27jyn2e
JacobRyan
JaipurEscort
Jalistre21Jakarta
JamesMarcus
JamesPreinter
JareenaService
JarinaLko
JasonRoy
JasonSharp
JaxonHibler
JenniferBrown
JeremiahNsiahAkuoko
JeromeAssistant
JerryDad
JoeHansan
JohnAndersonxz
JohnBidden
JohnCooper
JohnKeet
JohnSmith
JohnSmith123
JohnSmith55
JohnnyDepp
JohnseenaSeena
JollyJoseph
JoneLeo
JonesOmeo
JonoKarney
JosephHarryMensah
JoshuaDollar
JoshuaFoli
JosiahKotey
JosiahTerkper
JuliaWatson
JulianJackson
JustcasuaJustcasua
KamSoft
KangarooCarpetCleaningBrisbane
KaranPrakash
KarlNeon
KashishBabby
KellyEdwards
KennethParker
KewLabs
KiemeoLili
KimberlyKeller
KiranBhatt
KizlikZariDikimi
KnobinDigital
KomalAgarwal
KomalDas
KomalJi
KomalSharma
KumarManish
LahoreCallGirls
LarteyJoshua
LauraJonson
LavanyaKaur
LeatherLand
LeeBrown
LeesaMarteen
LillianEthan
LillyWillor
LillyzPwedsr
LilyJacob
LisaHydan
LiyaSmith
LlizaBearth
LocalCarpetCleaningMelbourne
LocalCarpetCleaningSydney
LoremDesigns
LucasMiller
LucknowModel
LuisFonsi
MackBrown
MajorCarpetCleaners
MalvikaAdhikari
ManishaSharma
ManviKakkar
MarcelMikaelson
MarcellLlerena
MarcoPichler
MarcosAntonioGrecco
MariaGarcia
MarieOrpos
MarkVenom
MarksPestControlAdelaide
MarksPestControlBrisbane
MarksPestControlCanberra
MarksPestControlPerth
MarksTileAndGroutCleaningAdelaide
MarksTileAndGroutCleaningBrisbane
MarsillpostMarsillpost
MartenJames
MartinCamila
MartinPaul
MasajFirsati
Maslerk1Maslerk1
MattressCleaningPerth
MattressCleaningSydney
MaxSmith
MaxWillor
Maxipi5846Maxipi5846
MayankKhosla
MayankKumar
MedicalArts
MelbourneDuctCleanerss
MelbourneDuctCleaning
MelbourneMovers
MelbourneMoversNPackers
MiaHenry
MichaelAdrah
MichaelJordan
MichaelsJohnson
MickyJames
MickyMart
MillerKing
MilziPtriq
Miqan5mcMiqan5mc
MollyParker
MonikaJacob
MonikaJones
MoversMississauga
MrSkill
MrSkillPakistan
MuleTory
MumbaieScortshub
MyDuctCleaningMelbourne
MyMooversQueensland
MyParlr
NancyJones
NancyWilson
NatalieZoe
NathanielAsante
NaveenKumar
NeenaSharma
NehaGupta
NehaPatel
NishaKapoor
NishuChauhan
NoahBeck
NootanArya
OnlineblogsandarticlesOnlineblogsandarticles
OptimoveOptimove
OrderhiveSoftware
PakSmartPanel
PaperWalls
PatriciaDemuth
PawanKuumar
PaySecuri
PerfectlyCleanHomes
PestControlBrisbane
PestControlMelbourne
PeterJohnslc
PhilipSmith
PickleballBin
PiyaSen
PnjSharptech
Portia94Williams
PortiaWilliams
PrbiUbwi
PrinceAcheampong
PrinceAlfredGyan
PriyaBhatt
PriyaSingh
ProfessionalCaProfessionalCarpetCleaningAdelaiderpetCleaningAdelaide
ProfessionalCarpetCleaningArmstrongCreek
ProfessionalCarpetCleaningBrisbane
ProfessionalCarpetCleaningMelbourne
ProfessionalDuctCleaningMelbourne
ProlificStudio
PuneindependentEscorts
QuickAndEasyMoving
RIPRodentControlMelbourne
RajatGupta
RajeshKumar
RankExcel
RaushanKumar
RavenParkerRavenParker
RebeccaSmith
RedbeardShop21
RedialSolutions
ReliableMelbourneAccountants
RickMark
RickyPauls
RimaRani
RitaEssien
RitikaRani
RituSharma
RituSharma4u
RiyaModelgirl
RiyaRoy
RobertDittmers
RohitJadhav
RohtasSaini
RollandAshiteye
RoshniKhanna
RoxaneFabin
RoyJeny
RoyalSydneyRemovals
RubenNetflix
RupalSharma
SaanviMalhotra
SainiSunny
SamBattherford
SamuelOfori
SamyOlogy
SandblogsSandblogs
SanjanaKaur
SanjayKumar7
SanyaMalhotra
SarahWilson
SaumyaGiri
SaumyaGirigirl
SaumyaGirirajput
SeedOut
SeedoutOrg
SeedoutOrganisation
SelasiAyittah
SelasiYegbe
SelectMyTutor
SeoBuilds
SeoCourseInRewari
SeoRankagency
ShandiCabrera
SharmiDey
ShawnJasper
ShawnJell
SheLeader
SheikhAbdullahBinZaid
SheldonCopper
SheryaSehgal
ShoutInAustralia
ShridharAggarwal
SimoneWatson
SkyNetFares
SkyseoTech
SlyAyebila
SmmPakPanel
SmoovlaSmoovla
SoinBeaute
SonamBajwa
SonamSharma
SonuPunjaban
SophieTurner
SpectrumAurora
SpeechLanguagePathologistJobsInNorthHollywood
SpotlessCarpetCleaningSydney
SpotlessDuctCleaningMelbourne
SqueakyCleanSofaMelbourne
SqueakyCleanSofaSydney
SqueakyPestControlMelbourne
StefanHook
SumonaRoy
SunilKumar
SuperAntennas
SushmaSiwan
SyaonJill
SylvanusAyebila
T5lm4layT5lm4lay
TayorKeira
TcasurTcasur
TechinnSolutions
TechnoLom
TeriSteward
TgiaOnline
TheJellyfishBar
TheMPC
ThingsToDoByShoutInAustralia
ThomasLeo
TileAndGroutCleaningMelbourne
TinaKapoor
TipTopCleanTeamBrisbane
TobiMuritala
TopRealEstateBrokerInAustinTx
Topcon4Topcon4
TravXplorer
TravoMojo
UdaipurEscort
UliRaich
UpholsteryCleaningSydney
VaishaliSabale
ValleyGentleDental
ValonAsani
VelmaShackles
VictorCathal
ViphotwebViphotweb
VirtualAssistant
Vocov52331Vocov52331
VodgFoge
W2kr1qgaW2kr1qga
WebnewconWebnewcon
WhatIsAFullStackDeveloper
WilhamOpokuDanquah
WillSmith
WillVenom
WilliamJameson
WilliamSmithh
WilliamWoodruff
WilliamsLeel
WisdomAduhene
XClearVision
Y3yuyri8Y3yuyri8
YamiSharma
Z0l69i9xZ0l69i9x
ZengYang
ZonasOnlineshopping
ZoyaSmith
Number of topics: 519
<--/patternSearchResultCount-->
META:FORM.*[U]serForm
will search for all topics with a UserForm attached - change this if you have a different form where userdata is stored. Please note that this search does not actually extract anything from the form - it just uses it to identify the appropriate pages
excludetopic="Test*, TWiki*"
allows to skip all topics starting with Test and TWiki, such as TestUser or TWikiAdmin. Use this if you have any special users who you do not want appearing in this list
> >
<-- ==========================
-->
Pattern 4: Extract the parent of a given topic
Problem
How to get to the parent of the current topic to display on the page?< < Solution > > Solution 1: Using META
Since TWiki 4.0 you can now use the META variable:
%META{ "parent" dontrecurse="on" }%
Solution 2: Using SpreadSheetPlugin
You might think that the following Search would do the trick: < < parent_link > > < < However, the [[$parent][parent_link]]
link fails if the topic has no parent set ($parent
will be empty). You can use some SpreadSheetPlugin magic to conditionally link to the parent or to WebHome
: [[$percntCALC{$IF($EXACT($parent,), %HOMETOPIC%, $parent)}$percnt][parent_link]]
> > However, the $parent
link fails if the topic has no parent set ($parent
will be empty). You can use some TWiki:Plugins/SpreadSheetPlugin magic to conditionally link to the parent or to WebHome
:
$percntCALC{$IF($EXACT($parent,),<nop>,$NOP( * $parent))}$percnt
So the total Search query to find a topic's parent topic is: < < [[FormattedSearch][parent_link]] > >
Test Case
The parent topic of this topic is:
Solution 3: Using IF statement
This pattern can be rewritten using %IF%
, removing the dependency on SpreadSheetPlugin:
%SEARCH{ "^%BASETOPIC%$" web="%BASEWEB%" scope="topic" type="regex" nonoise="on" format="$percntIF{$quot$parent$quot then=$quot * $parent$quot else=$quot<nop>$quot}$percnt" }% < < Test Case
The parent topic of this topic is: FormattedSearch > > Test Case
The parent topic of this topic is:
< < Pattern 5: Search and display the home topics of public webs in a list > >
<-- ==========================
-->
Pattern 5: Show all Children of a given topic
Problem
How to get to the list of all children of the current topic to display on the page?
Solution
The parent information is stored in the META:TOPICPARENT meta data. Do a SEARCH to find all topic parent meta data pointing to the current topic:
Children:
%SEARCH{ "META\:TOPICPARENT.*\"%TOPIC%\"" type="regex" nonoise="on" format="[[$topic]]" separator=", " }%
Note: Replace %TOPIC%
with %BASETOPIC%
if you put this SEARCH into the skin or a sidebar.
<-- ==========================
-->
Pattern 6: Search and display the home topics of public webs in a list
Problem
< < Pattern 6: Extract a value from a bullet list > >
<-- ==========================
-->
Pattern 7: Create a select box with values from a bullet list
Problem
We have a topic with a bullet list with category names. In another topic we want to offer these values in a select box dropdown.
For example, CategoryList has:
Clients
People
Rooms
Buildings
Solution
The following search pattern can be employed:
<select name="type">
<option>Select category...</option>
%SEARCH{" *\s*.*?" topic="CategoryList" type="regex" multiple="on" casesensitive="on" nosummary="on" nosearch="on" noheader="on" nototal="on" format="<option>$pattern(.* \*\s*([^\n]*).*)</option>"}%
</select>
To render the bullet list as a comma-separated list, use the separator
parameter:
%SEARCH{" *\s*.*?" topic="CategoryList" type="regex" multiple="on" casesensitive="on" nosummary="on" nosearch="on" noheader="on" nototal="on" separator="," format="$pattern(.* \*\s*([^\n]*).*)"}%
<-- ==========================
-->
Pattern 8: Extract a value from a named bullet list item
Problem Search for the Name:
entry. < < > >
Test case
Search result: < < > >
<-- ==========================
-->
Pattern 9: Search for Form and Meta data: explained < < Pattern 7: Search for Form and Meta data: explained Problem > > Below is an example of a search that searches form data. The questions are:
why is this searching the metadata, shouldn't it just search the text?
what is the meaning of the td..td
in the search expression?
< < %SEARCH{ "[S]tatus.*(td..td|value\=).*[W]aiting" casesensitive="on" regex="on" > > %SEARCH{ "[S]tatus.*(td..td|value\=).*[W]aiting" casesensitive="on" type="regex" nosearch="on" nototal="on" format="| $topic <br /> ($date - $rev -
Diffs ) |"}%
So a search for a form field could look like:
< < %SEARCH{ "[O]peratingSystem.*value\=.*[O]sWin" regex="on" ... }% > > %SEARCH{ "[O]peratingSystem.*value\=.*[O]sWin" type="regex" ... }%
Using square brackets is a trick to avoid a hit on the topic doing the search.
The .*
indicate that there can be any number of any character between OperatingSystem
and value
in the (whole) file
The following search finds topics in the old and new format:
< < %SEARCH{ "[O]peratingSystem.*(td..td|value\=).*[O]sWin" regex="on" ... }% > > %SEARCH{ "[O]peratingSystem.*(td..td|value\=).*[O]sWin" type="regex" ... }%
The td..td
matches td<>td
; a simple search on "[O]peratingSystem.*[O]sWin"
could find a hit in the topic text by coincidence.
A simple %SEARCH{ "[O]peratingSystem.*value\=.*[O]sWin" ...}%
search is sufficient if you do not have topics in the old format. < < Pattern 8: Search all topics that have been moved > >
<-- ==========================
-->
Pattern 10: Search all topics that have been moved Problem > > How would I go about listing all moved topics ?
Solution How would I go about listing all moved topics ?
Solution > > Search for the META:TOPICMOVED meta data. Type this: < < Moved topics: %SEARCH{ "%META\:TOPICMOVED" regex="on" format="$topic, " nosearch="on" noheader="on" nosummary="on" }%
> > Moved topics: %SEARCH{ "%META\:TOPICMOVED" type="regex" format="$topic, " nosearch="on" noheader="on" nosummary="on" }%
to get this (limited to 10 results): < < Moved topics: Number of topics: 0
<--/patternSearchResultCount-->
Contributors > > Moved topics: Number of topics: 0
<--/patternSearchResultCount-->
< < TWiki:Main.AntonAylward , TWiki:Main.ArthurClemens , TWiki:Main.JosMaccabiani , TWiki:Main.PeterThoeny , TWiki:Main.SueLocke > > Related Topics: UserDocumentationCategory , SearchHelp , TWikiVariables#VarSEARCH , FormattedSearch , RegularExpression < < Related Topics: UserDocumentationCategory > > -- Contributors: TWiki:Main.AntonAylward , TWiki:Main.ArthurClemens , TWiki:Main.JosMaccabiani , TWiki:Main.PeterThoeny , TWiki:Main.SueLocke