Kitutz / rainmeter

Automatically exported from code.google.com/p/rainmeter
0 stars 0 forks source link

Support Regular Expressions for substitute #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If Regular Expressions can be used for 'substitute', it will be very useful.
It will be able to edit any strings from retrieved deta.

Examples:

# extract just artist name from WINAMP.
"^\d+. (.+?) - .*$":"Artist: \1"

# Mask a IP adress
"^(\d{1,3}).(\d{1,3}).(\d{1,3}).\d{1,3}$":"\1.\2.\3.***"

# Truncates string by lenght and appends ”…” 
"^(.{10,}).+$":"\1..."

Original issue reported on code.google.com by kenz0.sa...@gmail.com on 15 Feb 2009 at 2:31

GoogleCodeExporter commented 8 years ago
The regexp library would have to be moved from the webparser to the main 
library but
yes, this would be an useful feature.

Original comment by kimmo.pekkola on 10 Mar 2009 at 4:53

GoogleCodeExporter commented 8 years ago

Original comment by brian.to...@gmail.com on 7 Apr 2009 at 9:31

GoogleCodeExporter commented 8 years ago
I'm actually really interested in this feature, specially the use it could have 
with
Winamp and other players.

Original comment by robarri...@gmail.com on 24 Dec 2009 at 8:19

GoogleCodeExporter commented 8 years ago

Original comment by ja...@jamesac.co.uk on 15 Jul 2011 at 2:47

GoogleCodeExporter commented 8 years ago
Support added in r=881

Original comment by ja...@jamesac.co.uk on 29 Jul 2011 at 12:02