wow, it works. Thank you very mutch for your help.

Ghafoor

Am Mittwoch, 24. Juli 2013 17:59:14 UTC+2 schrieb Eric Shulman:
>
>  
>
>> the search pattern "Merkel.*social" will find the tiddler. But the 
>> pattern "Merkel.*2005" will not find the tiddler, because TiddlyWiki 
>> searches only in the heel and not the entire text.
>> "(?sx)Merkel.*2005" does not work. How can I serach with a regex the 
>> entire txt?
>>
>>
> The TWCore search function definitely DOES search the *entire* text of the 
> tiddler.  The problem is with your regexp (search pattern) definition.
>
> Here's a link to a reference for javascript regexp syntax:
>
>
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
>
> Note the following:
> -------------
> (The decimal point) matches any single character except the newline 
> characters: \n \r \u2028 or \u2029. (The character set [^] can be used to 
> match any character including newlines.)
> -------------
>
> The problem is that the tiddler text contains newlines, so "foo.*bar" will 
> only find a match if "foo....bar" is *on the same line of text*.  Tather 
> than using "foo.*bar"... you should try "foo[^]*bar" which will allow for 
> intervening newlines.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>    http://www.TiddlyTools.com/#Donations
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
>    http://www.TiddlyTools.com/#Contact
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to