Regular Expressions 101

Library entries

1
javascript

Date checker for X values

Work in progress
Submitted by anonymous - 6 years ago
1
pcre

Youtube ID Extractor

no description available
Submitted by anonymous - 6 years ago
1
python

Basic DOI

no description available
Submitted by anonymous - 6 years ago
1
pcre

Acts

Extract Act names from statements
Submitted by anonymous - 6 years ago

create or change one optional part to another

Vote

1

Regular Expression
pcre

/
(?#skip match process when S exist, or remove optional left most target T, capture left and right part of T. Use case: if N is not exist, modify/change T to N, or create N. If any create or modify write operated, appending output N to right. skip exist:)^(?!.*S)(?# captrue prefix :)^(.*?)(?# optional target to remove:)(?:T|$)(?# captrue postfix:)(.*?)$(?# Test string: aa aaT Tcc aaTcc aaTbbTcc aaS aaTS TccS aaTccS Saa SaaT STcc SaaTcc Substitution: $1$2N Return: aaN aaN ccN aaccN aabbTccN aaS aaTS TccS aaTccS Saa SaaT STcc SaaTcc)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago