Open main menu
Home
Random
Recent changes
Special pages
Preferences
About MacroDroid Wiki
Disclaimers
MacroDroid Wiki
Search
User menu
3.147.78.117
Talk
Watchlist
Contributions
Log in
Changes
← Older edit
Newer edit →
Action: Text Manipulation
(view source)
Revision as of 22:37, 6 February 2024
257 bytes added
,
6 February
m
no edit summary
Line 1:
Line 1:
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
−
This action can be used to perform basic string manipulation on a text string.
<br/>
+
This action can be used to perform basic string manipulation on a text string.
−
<br/>'''Note'''<br/>
</pre>
</pre>
The replace text and extract text functions support the use of regex.<br/>
The replace text and extract text functions support the use of regex.<br/>
Line 40:
Line 39:
"macrodroid is my app to automate my device".<br/>
"macrodroid is my app to automate my device".<br/>
<br/>'''Trim whitespace'''<br/>
<br/>'''Trim whitespace'''<br/>
−
Removes any leading/trailing whitespace from the text.
+
Removes any leading/trailing whitespace from the text.
<br/>
+
<br/>'''Remove text'''<br/>
+
Remove text from some variable using plain text or Regex
+
<br/>'''Example Usage'''<br/>
+
Source text<br/>
+
the text to remove is "MACRODROID".
+
"MACRODROID IS MY APP TO AUTOMATE MY DEVICE".<br/>
+
Final result<br/>
+
" is my app to automate my device".<br/>
JosueGd
editors
1,590
edits