Customizing SMF > SMF Coding Discussion

Profile Field Input Mask (Regex)

<< < (5/6) > >>

The Craw:

--- Quote ---The website doesn't test php regexp, but ruby (could be different)

--- End quote ---

Are you completely serious right now? Is there some good reason for this that my limited understanding of Ruby can't quite grasp?!

emanuele:
Well, I know nothing about Ruby, but I know different languages can have differences. So I cannot be completely sure a regexp written for ruby will work on php.

The Craw:
I'm wondering why SMF is using Ruby regex in the first place.

Suki:
Where?

Regex in Ruby, Python and PHP is pretty much the same, there are no differences, Regex problems are because of string escaping  but the rules on regex itself are the same.

emanuele:

--- Quote from: The Craw on September 07, 2012, 07:42:43 PM ---I'm wondering why SMF is using Ruby regex in the first place.

--- End quote ---
Rubular (the website I linked for regexp testing purpose) is using Ruby, not SMF! ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version