Regular Expressions Example

If you want to use regular expressions to know if some numerical value is higher then 199 use the following code:



^          = String begins with

\d         = numerical string (character 0-9)

{1,2}    = minimal 1 maximum 2 numerical characters

$          = end script

|           = OR (to bind 2 regular expressions)

^          = begins with

[1]        = first character = 1 (if you want to go till 299 it may be [1-2])

\d\d      = the next 2 character must be numerical strings

$          = end

For 399 the parameter can be:




Nice freeware regex tool:

Lot of samples:

Online test:

Hope this helps 🙂

Migrate my Joomla 1.0.15 to 1.5.x

Yes, I know… My Joomla site is very old. In this article I will write down all my migration steps. The best practise is to create a development environment. I download and install a Debian 5.0 (lenny) OS and installed all the common LAMP, SSH, Samba, PHPMyadmin & ImageMagick  packages. Then:

  1. I Copy the content of my site to my development environment
  2. Edit the joomla configuration.php file and change my physical paths
  3. Upload my database
  4. Check all my joomla modules
  5. set 777 permisions for easy testing 😉
  6. I know from earlier testing that mine Joomla template is not compatible with 1.5. So I download and install Artisteer 2 to create a new template. This software works so easy I created the template with my girlfriend 😉 (download torrent)
  7. My Biggest concern is the community builder component and the forum. This are the most important modules so I will upgrade them first.
  8. Backup administrator/components/com_comprofiler/ue_config.php, remove the CB module and reinstall the latest versions. (note: latest CB have 1.5.10 native support)
  9. My Fireboard version is aleady to the latest version (1.0.5 RC2) 😀
  10. Now I will install the migrator tools and follow the 5 migration steps @
  11. I have installed the migrator and the fireboard ETL’s. After that I create A SQL Dump. Now I must create a new 1.5 install and import everything.
  12. Note: You can now download your SQL dump file and upload it into your Joomla! 1.5 installation to continue the process. Don’t forget to select migration and use the prefix ‘jos_’ (this migrator rewrites your prefix to jos_ even if the sites prefix is different).
  13. I found a small community builder howto @
  14. * Step 1: Export the Community Builder database tables from 1.0
    * Step 2: Download administrator / components / com_profiler / ue_config.php
    * Step 3: Install CB on the 1.5 site:
    * Step 4: Delete the CBt database tables on 1.5 and import the old tables from 1.0
    * Step 5: Upload the old ue_config.php to administrator / components / com_profiler / ue_config.php
  15. For expose I can install the latest version. The copy the ../components/com_expose/expose/img and xml folders to the new site. That as very easy 🙂
  16. For the CB Profile pictures I copy images/comprofiler to the new site.
  17. .. to be continued

Template fix:

Extensions > Module manager > Top Menu (or any other menu, e.g. Main Menu) > click to Edit this module > select Position = user3. Save the configuration and go to the frontpage. You should see your Artisteer style applied to the menu items.

And first assign another default template and then your template

Howto: Automaticly install printer and printer port

First create a port:

cscript %windir%\system32\prnport.vbs -a -s localhost -r IP_10.31.32.100 -h -o raw -n 9100

Then create a printer:

rundll32 printui.dll,PrintUIEntry /if /b "Some Printer Name" /f C:\DEV\pcl5e_5c\P52KHAL.inf /r "IP_10.31.32.100" /m "Canon iR 3100C EUR PCL5c"

For more info try the /? commands