background preloader

JavaScript Lab - Tools - JS Regex Generator

JavaScript Lab - Tools - JS Regex Generator

about code Found at: This article will give you an introduction to the world of . I'll start off with explaining what regular expressions are and introduce it's syntax, then some examples with varying complexity and last a list of tools which use . Concept A is a text pattern consisting of a combination of alphanumeric characters and special characters known as metacharacters. A close relative is in fact the which are often used in file management. You'll find that are used in three different ways: Regular text match, search and replace and splitting. are often simply called regexps or RE, but for consistency I'll be referring to it with it's full name. Usage Now you're probably wondering why you should bother to learn . Developers can use them to parse text files, fix up code and other wonders. Actually I would go so far as to say it's a crime for a System Administrator not to have knowledge of . Quantifiers Two heavily recurring metacharacters are

15 Free Productivity Tools To Simplify Your Work Life For Web Professionals Today, we have a new post in which we are covering few simplest free web apps that can really simplify your work life. Whether you are office worker, manager, supervisor, designer, developer, student, home user, etc. These online tools focusing on your core work responsibility and help in various tasks and help to add value in your tasks. Most of them are not very well-known, but they are really amazing in respect to their features. Just take a look at them and share your thought here. Bounce It is an easy and helpful tool that lets you optimize and analyze websites. Advertisement MindMeister Do you want help brainstorming new ideas for some new project? Simplenote Is your computer cluttered with Post-it notes? Woorank If you want to know that how well does your site do then use this tool. ResizeMyBrowser Do you want to know how does your web design looks on other people’s monitors and browsers? Ge.tt Share files that you have found online by this simple yet amazing tool. Coolendar Smartr Buffer

/reFiddle+/ What the JavaScript RegExp API Got Wrong, & How to Fix It Over the last few years, I've occasionally commented on JavaScript's RegExp API, syntax, and behavior on the ES-Discuss mailing list. Recently, JavaScript inventor Brendan Eich suggested that, in order to get more discussion going, I write up a list of regex changes to consider for future ECMAScript standards (or as he humorously put it, have my "95 [regex] theses nailed to the ES3 cathedral door"). I figured I'd give it a shot, but I'm going to split my response into a few parts. In this post, I'll be discussing issues with the current RegExp API and behavior. I'll be leaving aside new features that I'd like to see added, and merely suggesting ways to make existing capabilities better. I'll discuss possible new features in a follow-up post. For a language as widely used as JavaScript, any realistic change proposal must strongly consider backward compatibility. Remove RegExp.prototype.lastIndex and replace it with an argument for start position Start search from position 5, using pos:

Rendez votre site web compatible avec IE 9 (ahahahaha) Rendez votre site web compatible avec IE 9 (ahahahaha) Alors que Mozilla vient de sortir la version RC1 de Firefox 4.0, Microsoft a quand à lui confirmé la sortie d'Internet Explorer 9 pour le 14 mars ! Super tout ça ! IE 9 sera plus gentil avec les standards du web et plus rapide... et apporte aussi quelques nouveautés 100% Microsoft comme par exemple la possibilité pour un site de changer les couleurs des flèches de navigation Suivant/Précédent de votre browser ou encore la possibilité d'épingler ce site dans la barre des tâches... Mais ce que vous ne savez peut être pas, c'est que pour que l'icône épinglée dans la barre des tâches des gens soit sympa, avec le vrai nom de votre site, la petite bulle qui va bien, la bonne résolution de fenêtre ou la bonne adresse de démarrage, ou encore pour que les couleurs des boutons du navigateur de vos visteurs soient de la bonne couleur, vous devrez rajouter du code dans le header de votre site... [Source] Vous avez aimé cet article ?

RegexOne - Learn regular expressions with interactive examples JavaScript Cookbook Entri – Outil de création de contenu web collaboratif par Sylvain Entri est un petit service en ligne gratuit qui permet de rédiger du contenu à plusieurs instantanément sur une seule et même interface pour tous les collaborateurs. Avec Entri, d’un simple clic, vous allez pouvoir avoir un éditeur de texte collaboratif pour de la création de contenu à plusieurs. En effet, vous partagez l’URL qui vous est alloué par Entri avec vos amis, collaborateur, autres et ainsi, chacun va pouvoir mettre sa pierre à l’édifice. à découvrir ici:

Présentation de Javascript (weebaz) Par Martin Depuis l’arrivée du web2.0 avec ses interfaces plus vivantes, le Javascript est de nouveau à la mode. Souvent utilisé avec Ajax il permet d’ajouter une couche d’ergonomie supplémentaire à l’interface utilisateur. Javascript s’est « professionnalisé » ces dernières années, au travers de frameworks qui apportent leur simplicité et standardisent les développements. Photo de Frédéric de Villamil depuis Flickr Définitions Javascript ou JScript, suivant le navigateur, est un langage de script orienté objet ou plus exactement orienté prototype qui s’exécute côté client, sur la machine de l’internaute. Historique Javascript a été créé par Netscape en 1995 et mis en place dand Netscape Navigator dès 1996. Depuis Adobe a lui aussi créé sa propre implémentation du standard, ActionScript, utilisée dans Flash, et le standard évolue régulièrement pour apporter de nouvelles fonctionnalités. Ou apprendre ? Documentation Questions / Réponses Les frameworks et bibliothèques Javascript Outils

Comparer le temps de chargement de deux sites Mardi 7 décembre Web - 7 décembre 2010 :: 07:38 :: Par Camille Je ne pense pas que je vais vous l’apprendre : le temps de chargement des pages fait partie depuis plusieurs mois des critères de pertinence du moteur de recherche de Google. Je ne pense pas que je vais vous l’apprendre : le temps de chargement des pages fait partie depuis plusieurs mois des critères de pertinence du moteur de recherche de Google. Cet outil open-source a été développé en HTML et en JavaScript, et le code s’exécute coté client pour éviter d’avoir un temps de réponse coté serveur. Une fonctionnalité permet de comparer en boucle (5, 10, 100 fois…) et de retourner la moyenne du site le plus rapide à charger. Sans oublier les fonctions de partage et d’exportation au format CSV qui seront bien utiles pour vos comparatifs.

JavaScript Kit- Array Object By default sorts an array alphabetically and ascending. By passing in an optional SortFunction, you can sort numerically and by other criteria as well. If SortFunction is defined, the array elements are sorted based on the relationship between each pair of elements within the array, "a" and "b", and your function's return value. The three possible return numbers are: <0 (less than 0), 0, or >0 (greater than 0): Less than 0: Sort "a" to be a lower index than "b" Zero: "a" and "b" should be considered equal, and no sorting performed. Greater than 0: Sort "b" to be a lower index than "a". Take a look at the following 3 distinct examples: //Sort Alphabetically and ascending: var myarray=["Bob","Bully","Amy"] myarray.sort() //Array now becomes ["Amy", "Bob", "Bully"] //Sort Alphabetically and descending: var myarray=["Bob","Bully","Amy"] myarray.sort() myarray.reverse() //Array now becomes ["Bully", "Bob", "Amy"]

Related: