Hello, I'm trying to filter out the spaces from the outcome of my RegExp but I don't quite get the syntax.
At the moment I have this:
(?siU)<em>(.*)</em>
And the result, when parsed, is like
text1 text2 text3 text4
and I would like to just have it return
"text1text2text3text4"
Could somebody help me?
-Thanks.
It is currently April 27th, 2024, 7:08 am
Filter out specific characters in regular expressions.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
-
- Rainmeter Sage
- Posts: 16175
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Filter out specific characters in regular expressions.
Just add the following two options to the measure which returns the text1 text2 text3 text4 string:kyriakos876 wrote:And the result, when parsed, is like
text1 text2 text3 text4
and I would like to just have it return
"text1text2text3text4"
Code: Select all
RegExpSubstitute=1
Substitute="\s+":""
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Filter out specific characters in regular expressions.
Thanks, that's what I needed.balala wrote:Just add the following two options to the measure which returns the text1 text2 text3 text4 string:Code: Select all
RegExpSubstitute=1 Substitute="\s+":""
-
- Rainmeter Sage
- Posts: 16175
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania