It is currently March 28th, 2024, 8:34 pm

[FIXED BUG] RegEx not being parsed correctly with Substitute.

Report bugs with the Rainmeter application and suggest features.
User avatar
redsaph
Posts: 30
Joined: October 24th, 2013, 8:15 am

Re: [BUG] RegEx not being parsed correctly with Substitute.

Post by redsaph »

Brian wrote:r2944 should have fixed this issue.

-Brian
ikarus1969 wrote:this issue is fixed, thank you!

i used the following to test (shortened regex):

Code: Select all

[Rainmeter]
Update=1000
Author=Redsaph
AccurateText=1

; [mTitle1]
; Measure=Plugin
; Plugin=SpotifyPlugin.dll
; Type=TrackName
; RegExpSubstitute=1
; Substitute="^(.+) (-.+|((\(|\[)?\s?(remix|Remix|REMIX|with|With|WITH|feat|Feat|FEAT|ft|Ft|FT|(w|W)\/).+))+$":"\1"

[mTitle1]
Measure=STRING
String=LOYALTY. FEAT. RIHANNA.
RegExpSubstitute=1
; Substitute="^(.+) (-.+|((\(|\[)?\s?(remix|Remix|REMIX|with|With|WITH|feat|Feat|FEAT|ft|Ft|FT|(w|W)\/).+))+$":"\1"
Substitute="(?siU)^(.+) (-.+|((\(|\[)?\s?(remix|with|feat|ft|w\/).+))+$":"\1"

; =================================================
; Meters

[Background]
Meter=Image
X=0
Y=0
W=700
H=100
SolidColor=0,0,0,180
UpdateDivider=-1

[Title]
Meter=String
Y=0
X=0
DynamicVariables=1
measurename=mTitle1
; Text=[mTitle1]
FontFace=Segoe UI
FontSize=36
FontColor=255,255,255,255
AntiAlias=1
StringAlign=Left

Thanks to everyone and the Rainmeter development team! :great: :thumbup:

I changed the title to indicate it's been fixed :)
Rainmeter-er since 2013 :welcome: | My DeviantART