Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
(?:\"(?:(?<=\"(?=[^\n]))[^\n]+?(?=(?<!\\))(?=\"))?\")|(\B'(?:(?<='(?=[^\n]))[^\n]+?(?=(?<!\\))(?='))?')
/
gm

Description
Created·2023-07-02 10:16
Updated·2023-07-02 10:19
Type·Match
Flavor·PCRE2 (PHP)

All Strings on One Line

  • Php
  • java
  • javascript
  • python
  • escapes all regex
  • sq inside dq pair
  • dq insside sq pair
Submitted by kai gouthro
Open Workspace