Ah! A bug eh? Nasty things! lol
Well, it works now so thanks for taking a look and fixing it
It is currently April 27th, 2024, 1:41 am
Help with RegEx please :)
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Help with RegEx please :)
A much better pattern: InlinePattern=^(?!No Drive$|[\d\.]+ \w?B$).+ (.+)$
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Help with RegEx please :)
Only if you were not amazed by the fact that the previous variation was incorrect. If you didn't realize it, by all means, stick with the old variation - I wasn't the one asking for help with regex, after all.
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Help with RegEx please :)
This one works for me
Here are previews
Code: Select all
RegExpSubstitute=1
Substitute="0.0":"No Drive","^(\d.+)$":"\1b"
You do not have the required permissions to view the files attached to this post.
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Help with RegEx please :)
Here it is with your code
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
---Measures---
[m1Free]
Measure=FreeDiskSpace
Drive=#Disk1#:
IgnoreRemovable=0
RegExpSubstitute=1
Substitute="0.00":"No Drive","^(\d.+)$":"\1b"
[1Free]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=m1Free
MeasureName2=m1Total
StringAlign=Left
NumOfDecimals=2
AutoScale=1
Text=%1
ToolTipText="Size: %2B"
InlineSetting=Size | 8
X=65
Y=7
You do not have the required permissions to view the files attached to this post.
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away