It is currently April 27th, 2024, 1:41 am

Help with RegEx please :)

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Help with RegEx please :)

Post by sl23 »

Ah! A bug eh? Nasty things! lol

Well, it works now so thanks for taking a look and fixing it :thumbup:
- MuLab -
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help with RegEx please :)

Post by Yincognito »

sl23 wrote: August 7th, 2021, 11:07 pm Ah! A bug eh? Nasty things! lol

Well, it works now so thanks for taking a look and fixing it :thumbup:
A much better pattern: InlinePattern=^(?!No Drive$|[\d\.]+ \w?B$).+ (.+)$
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Help with RegEx please :)

Post by sl23 »

Are you going to amaze me with all the variations now? :rolmfao: ;-) :thumbup:
- MuLab -
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help with RegEx please :)

Post by Yincognito »

sl23 wrote: August 7th, 2021, 11:54 pm Are you going to amaze me with all the variations now? :rolmfao: ;-) :thumbup:
Only if you were not amazed by the fact that the previous variation was incorrect. :D 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. :lol:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Help with RegEx please :)

Post by sl23 »

Ok, ok, you got me! :oops:
Thank you for your help :thumbup:
- MuLab -
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help with RegEx please :)

Post by Yincognito »

sl23 wrote: August 8th, 2021, 10:43 am Ok, ok, you got me! :oops:
Thank you for your help :thumbup:
No problem - remember, it's your skin, and you decide on this matter. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help with RegEx please :)

Post by David8192 »

This one works for me

Code: Select all

RegExpSubstitute=1
Substitute="0.0":"No Drive","^(\d.+)$":"\1b"
Here are previews
You do not have the required permissions to view the files attached to this post.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Help with RegEx please :)

Post by sl23 »

:D :thumbup:
- MuLab -
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help with RegEx please :)

Post by David8192 »

sl23 wrote: August 8th, 2021, 2:51 pm:D :thumbup:
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
I don't have your meterstyle but I BELIEVE THIS IS WHAT YOU WERE LOOKING FOR ;-)
You do not have the required permissions to view the files attached to this post.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Help with RegEx please :)

Post by sl23 »

Thanks :thumbup:
- MuLab -