Mohammad wrote:
>
> Yes, as Eric explained these are scientific notation. I forgot to add they 
> can have positive or negative sign like
>
> +1.23e4_dp
> -1.23e4_dp
>
> 1.236e+5_dp
> -1.23e-5_wp
>
 
It is an interesting case. Like with the dates. It can be matched quite 
simply by PATTERN. But the pattern will match things you might overlook.

For the specific case a "pattern-match" for a field containing a string 
(and only that) would be ...

^([\-+.0-9e]+_[A-Za-z]+)$

This would likely be all you'd need??

But it could be made more precise if needed. 

Here is a test match (and one problem) ... the green arrow -> indicates the 
match ...

[image: Annotation 2019-08-24 205231.jpg]


Its a fact regex isn't "determinate" in the same way normal code is. That 
can lead to much confusion. Testing against data is the best way to ensure 
a regex is good enough for its purpose.

TT

-- 
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/46178133-fda1-4526-aed6-df2c1e00c49a%40googlegroups.com.

Reply via email to