I have been using Regex in JavaScript in my applications. But I am wondering which one is the best and to be honest I dont know more about php Regex or Perl Regex.
1. Do you guys think that there are significant adv available in PHP over Javascript Regex?
2. Is Perl Regex superior to PHP Regex?
Which Regex is superior?
Moderator: General Moderators
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
it's pretty easy to tell if JS is enabled:
where jsEnabled.php would output realfile.png, but also record/set up/whatever that the user has JS enabled.
Code: Select all
<script language="Javascript">document.write('<img src="jsEnabled.php" />');</scirpt><noscript><img src="realfile.png" /></noscript>- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact: