ReReplacer provides the shared [[comma]], [[space]], and [[counter]] tags in both editions. The remaining dynamic tags below are Pro-only.
| Input Syntax | Output Example | Description | Search | Replace |
|---|---|---|---|---|
[[comma]] |
, | Use instead of a comma when 'Treat as List' is selected. Use normal commas to create lists. | Yes | Yes |
[[space]] |
Use instead of leading and trailing spaces (otherwise they will get stripped upon saving). | Yes | Yes | |
[[text:MY_STRING]] |
My translated string | Translate a loaded Joomla language string. | No | Yes |
[[user:id]] |
465 | The ID number of the current logged-in user. * | No | Yes |
[[user:username]] |
peter | The login name of the current logged-in user. * | No | Yes |
[[user:name]] |
Peter van Westen | The name of the current logged-in user. * | No | Yes |
[[user:misc]] |
I'll sell you good copper, which is cheaper... well, here it is. |
Any other available data field from the current logged-in user or the connected contact. * | No | Yes |
[[article:id]] |
123 | The ID number of the current article. ** | No | Yes |
[[article:title]] |
My Article | The title of the current article. ** | No | Yes |
[[article:alias]] |
my-article | The alias of the current article. ** | No | Yes |
[[date:%A, %d %B %Y]][[date:%Y-%m-%d]] |
Monday, 05 September 2022 2022-09-05 |
Date using the extension's supported strftime-style format tokens. | No | Yes |
[[random:0-100]][[random:1000-9999]] |
47 3119 |
This places a random number within the given range. | No | Yes |
[[random:this,that]][[random:1-10,20,50,100]] |
that 7 |
A random value from a list of strings, numbers or ranges. | No | Yes |
[[counter]] |
1 | This places the number of the occurrence. If your search is found, say, 4 times, the count will show respectively 1 to 4. | No | Yes |
[[escape]]\1[[/escape]] |
"It\'s a string!" | Use to escape dynamic values (add slashes to quotes). | No | Yes (regex) |
[[uppercase]]\1[[/uppercase]] |
"IT'S A STRING!" | Convert text within tags to uppercase. | No | Yes (regex) |
[[lowercase]]\1[[/lowercase]] |
"it's a string!" | Convert text within tags to lowercase. | No | Yes (regex) |
[[notags]]\1[[/notags]] |
"It's a string!" | Remove HTML tags from the text within tags. | No | Yes (regex) |
[[nowhitespace]]\1[[/nowhitespace]] |
"It'sastring!" | Remove HTML tags and whitespace from the text within tags. | No | Yes (regex) |
[[toalias]]\1[[/toalias]] |
its-a-string | Convert text within tags to an alias (lowercase dash-separated string). | No | Yes (regex) |
[[replace from="string" to="different word"]]\1[[/replace]] |
"It's a different word!" | Search and replace inside the text within tags. | No | Yes (regex) |
* The user data tags place data from the logged-in user. If the visitor is not logged in, the tag will be removed.
** The article data tags are only available when the Search Area is set to "Content (Articles & Categories)".