kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 6 forks source link

DOTALL mode missing? #34

Open alexhunsley opened 1 year ago

alexhunsley commented 1 year ago

I have a search and replace job which I think I need DOTALL to work with, but the interface doesn't allow DOTALL:

first match
global match
multiline mode
global multiline mode

If you're curious, my RE can be seen at https://regexr.com/7i46v (it uses global and DOTALL).

kookma commented 1 year ago

I think the pattern is not correct. Ask in TW forum (talk.tiddlywiki.org)

kookma commented 1 year ago

If you're curious, my RE can be seen at https://regexr.com/7i46v (it uses global and DOTALL).

Testing in with some sample tiddlers, using

Search flag: global match

Search text

```\n(.*?)\n```

Works fine!

alexhunsley commented 1 year ago

Thanks kookma, I'll have a look at that!