Questions tagged [regex]

For questions about using regular expression (regex or regexp) in Joomla development. Regex is a sequence of characters that define a search pattern for use in pattern matching with strings, like "find and replace" operations.

Filter by
Sorted by
Tagged with
0
votes
0answers
46 views

Redirect administrator login page of multiple Joomla websites hosted in Apache server

I have around 10 Joomla websites hosted on Apache server. The admin URLs are similar to below patterns. http://m1.aa.example.com/administrator http://m2.aa.example.com/administrator . ...
0
votes
1answer
61 views

Hikashop, extract text after read more

I want to have the introtext and then the rest of the text in Hikashop product details page. So in the product description I insert the <hr id="system-readmore" /> to separate the introtext and ...
2
votes
1answer
279 views

Joomla 2.5 email validation issue

There seems to be a major issue on several v2.5.7 sites I've been asked to help with, where emails are not being validated when entered into the built-in com_contact component on a standard contact-us ...
1
vote
2answers
226 views

How to query a table column for values that start with a non-alphabetic character?

How can rows starting with non alphabetic characters (all "special" characters, including spaces and underscores) be selected? I don't know if it changes anything, but my_table will also contain ...
6
votes
2answers
1k views

How to use a regex to validate a FormField?

Is there a way to simply validate a form field with a regular expression? I thought about something like this: <field name="firstname" type="text" label="Firstname" validate="regex" regex="...