Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-07-02 10:16
Updated·2023-07-02 10:19
Flavor·PCRE2 (PHP)

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

Description

All Strings on One Line

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