Bonnes Pratiques Web & Cloud
58.8K views | +4 today
Follow
Bonnes Pratiques Web & Cloud
Administration cloud et développement web
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'regex'. Clear
Scooped by Mickael Ruau
Scoop.it!

Comment débuter avec les Regex en SEO

Comment débuter avec les Regex en SEO | Bonnes Pratiques Web & Cloud | Scoop.it
Commencez par utiliser les Regex, une option de filtrage des données qui permet d'améliorer les pratiques de SEO grâce aux données. Regex est utilisé dans Google Analytics et Google Search Console.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

The Regex Cheat Sheet

The Regex Cheat Sheet | Bonnes Pratiques Web & Cloud | Scoop.it
i Hate Regex is a regex cheat sheet that also explains the commonly used expressions so that you understand it. Stop hating and start learning.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

OWASP Header Validation - Regex Tester/Debugger

Regular Expression to Checks for malicious header values
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

30 Useful Regex Code Snippets for Web Developers

30 Useful Regex Code Snippets for Web Developers | Bonnes Pratiques Web & Cloud | Scoop.it
Regular expressions are a powerful tool that should be in every developer's tool belt. They can match against a string of characters based on very complex
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Regular Expressions Tutorial

Regular Expressions Tutorial | Bonnes Pratiques Web & Cloud | Scoop.it
Regex Style. Discusses strategies to solve regular expressions problems and write good regex.
Mickael Ruau's insight:
Two Mnemonic Devices to Check your Regexps
Greedy atoms anchor again.

Until you acquire a lot of practice, it's probably impossible to keep all these rules in mind at the same time. But remembering a few is better than remembering none, so if you're starting out, may I suggest a simple phrase to help remind yourself of tweaks that may improve the expression?

Greedy atoms anchor again.


✽ "Greedy" reminds you to check if some greedy quantifiers should be made lazy, and vice-versa. It also reminds you of the performance hit of lazy quantifiers (backtracking at each step), and of potential workarounds.
✽ "Atoms" reminds you to check if some parts of the expression should be made atomic (or use a possessive quantifier).
✽ "Anchor" reminds you to check if the expression should be anchored. By extension, it may remind you of boundaries, and whether to add them—or remove them.
✽ "Again" reminds you to check if parts of the expression could use the repeating subpattern syntax. 

If you prefer short mnemonic devices, you may prefer the acronym AGRA, helpful to build the Taj Mahal of regular expressions, and named after the Indian city Agra, best known for the Taj Mahal:

✽ A for Anchor
✽ G for Greed
✽ R for Repeat
✽ A for Atomic

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Regex Tutorial—Regex Tricks, Traps and Optimizations

Regex Tutorial—Regex Tricks, Traps and Optimizations | Bonnes Pratiques Web & Cloud | Scoop.it
Regex Tricks. Collection of Regex optimizations, tricks and traps.
Mickael Ruau's insight:

The best regex trick or optimization, in my opinion, is to start with good style. So I highly recommend you visit the page on regex style if you haven't already done so. There, among other things, you will find a mnemonic phrase that will help you polish off many of your expressions: greedy atoms anchor again. 

This page is contains two major sections:
• Regex Optimizations
• Regex Tricks and Traps

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Beginner's Guide to Regular Expression (Regex)

Beginner's Guide to Regular Expression (Regex) | Bonnes Pratiques Web & Cloud | Scoop.it
A regular expression is a set of characters forming a pattern that can be searched in a string.Regex can be used for validation such as to validate...
No comment yet.
Rescooped by Mickael Ruau from Web Increase
Scoop.it!

iHateRegex – Le site qui décortique les expressions régulières pour ceux qui les détestent –

iHateRegex – Le site qui décortique les expressions régulières pour ceux qui les détestent – | Bonnes Pratiques Web & Cloud | Scoop.it
Si vous avez pour habitude de manipuler des expressions régulières (Regexp), voici un site qui devrait vous aider à les tester, mais surtout à les comprendre un peu mieux. Ce site c’est iHateRegex développé par Geon George et ça s’adresse aux gens comme moi qui détestent les regexp trop...

Via Jean-Jacques Roland
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript

Online regex tester, debugger with highlighting for PHP, PCRE, Python, Golang and JavaScript.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Regex Cheat Sheet

Regex Cheat Sheet | Bonnes Pratiques Web & Cloud | Scoop.it
Regular Expressions Syntax Reference. Includes tables showing syntax, examples and matches.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Regex Tutorial—Recursive Regex

Regex Tutorial—Recursive Regex | Bonnes Pratiques Web & Cloud | Scoop.it
About Recursive Regular Expressions. Advanced Regex Tutorial with examples and full tracing of the engine matches.
Mickael Ruau's insight:

The recursive syntax is very simple: you just add (?R) anywhere you like in your pattern. Basically, (?R) means "paste the entire regular expression right here, replacing the "(?R)". 

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Regex Tutorial—Regex Lookarounds: Lookahead and Lookbehind

Regex Tutorial—Regex Lookarounds: Lookahead and Lookbehind | Bonnes Pratiques Web & Cloud | Scoop.it
Regex Lookaround Tutorial. Explains the fine details of Lookahead and Lookbehind.
Mickael Ruau's insight:

Lookarounds often cause confusion to the regex apprentice. I believe this confusion promptly disappears if one simple point is firmly grasped. It is that at the end of a lookahead or a lookbehind, the regex engine hasn't moved on the string. You can chain three more lookaheads after the first, and the regex engine still won't move. In fact, that's a useful technique.

No comment yet.