• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
15 results tagged regex

Pattern (Java SE 9 & JDK 9 )

QRCode

Java Regular Expressions

https://docs.oracle.com/javase/9/docs/api/java/util/regex/Pattern.html
February 6, 2025 at 9:07:10 AM EST *
java regex clojure
FILLER

Dangers of Regular Expressions in JavaScript | Sonar

QRCode

A deep investigation into regular expression denial of service (ReDoS) vulnerabilities in JavaScript

Backtracking
It might not seem obvious, but most problems with regular expressions stem from failing to match part of the string they are being evaluated against. Matching is easy, but not matching can cause a process called backtracking where the regular expression engine will go back over choices that it made and try alternatives.

Lost in spaces
Let's have a look at an example. In the Stack Overflow outage, the offending regular expression was /^[\s\u200c]+|[\s\u200c]+$/. Let's break down what each part means:

https://www.sonarsource.com/blog/vulnerable-regular-expressions-javascript/
October 24, 2023 at 11:13:02 AM EDT *
regex javascript
FILLER

GitHub - ziishaned/learn-regex: Learn regex the easy way

QRCode

Learn regex the easy way.

https://github.com/ziishaned/learn-regex
January 4, 2021 at 1:58:43 PM EST *
regex
FILLER

Javascript regular expressions aren’t that daunting — here’s how to design your own

QRCode
https://thenextweb.com/syndication/2020/07/11/javascript-regular-expressions-arent-that-daunting-heres-how-to-design-your-own/
August 14, 2020 at 4:29:33 PM EDT *
javascript regex
FILLER

Lookahead and Lookbehind Tutorial—Tips &Tricks

QRCode

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.

https://www.rexegg.com/regex-lookarounds.html
June 14, 2019 at 1:45:16 PM EDT *
perl regex
FILLER

Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions

QRCode

Lookahead and lookbehind, collectively called "lookaround", are zero-length assertions just like the start and end of line, and start and end of word anchors explained earlier in this tutorial. The difference is that lookaround actually matches characters, but then gives up the match, returning only the result: match or no match. That is why they are called "assertions". They do not consume characters in the string, but only assert whether a match is possible or not. Lookaround allows you to create regular expressions that are impossible to create without them, or that would get very longwinded without them.

https://www.regular-expressions.info/lookaround.html
October 29, 2018 at 11:10:39 AM EDT *
perl regex
FILLER

Regular Expressions - JavaScript | MDN

QRCode
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
February 28, 2014 at 10:28:43 AM EST *
javascript regex
FILLER

Daring Fireball: An Improved Liberal, Accurate Regex Pattern for Matching URLs

QRCode
http://daringfireball.net/2010/07/improved_regex_for_matching_urls
July 28, 2010 at 10:33:32 AM EDT *
programming regex
FILLER

Regular Expressions in JavaScript | evolt.org

QRCode
http://www.evolt.org/regexp_in_javascript
January 29, 2010 at 9:45:23 AM EST *
javascript regex
FILLER

Essential Guide To Regular Expressions: Tools and Tutorials | Developer's Toolbox | Smashing Magazine

QRCode
http://www.smashingmagazine.com/2009/06/01/essential-guide-to-regular-expressions-tools-tutorials-and-resources/
June 2, 2009 at 9:41:32 AM EDT *
regex
FILLER

Regexp::Common - Provide commonly requested regular expressions - search.cpan.org

QRCode
http://search.cpan.org/dist/Regexp-Common/lib/Regexp/Common.pm
May 27, 2009 at 3:18:54 PM EDT *
perl regex
FILLER

How to Find or Validate an Email Address

QRCode
http://www.regular-expressions.info/email.html
January 31, 2008 at 1:35:05 PM EST *
perl email regex
FILLER

JavaScript RegExp Example: Regular Expression Tester

QRCode
http://www.regular-expressions.info/javascriptexample.html
June 13, 2007 at 2:47:24 PM EDT *
programming regex javascript
FILLER

Vim Regular Expressions 101

QRCode
http://www.geocities.com/volontir/
April 24, 2007 at 10:42:07 AM EDT *
tutorial vim regex
FILLER

Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes)

QRCode
http://java.sun.com/docs/books/tutorial/essential/regex/index.html
February 2, 2007 at 1:20:39 PM EST *
java regex
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community