Ciao Mat

What you interested in here is negatives? Right?

You will have to do the regex through a definition since negatives involve 
square brackets.

"<div ?[^c>]" should work for the example. If its the content of a one line 
field. IF its deep inside a text field we'd need to do a bit more.

But basically ...

literal "<div"

" ?" match  0 or 1 space

"[^c>]" match any character that is not "c" or ">" 


 This should match anything NOT with those patterns.

Tell me if you have problems.

TT

On Saturday, 15 February 2020 21:31:55 UTC+1, Mat wrote:
>
> How should I formulate the operand for the regexp filter operator 
> <https://tiddlywiki.com/prerelease/#regexp%20Operator> ( regexp[...] ) to 
> catch
> <div
> but not
> <div>
> nor (for example)
> <div class="x">
> ?
>
> I'm hoping there is a single regexpression for this.
>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0daa26af-21ba-442f-aa80-def89d909f2d%40googlegroups.com.

Reply via email to