Regular Expressions 101

Sponsors

Library entries

0
javascript

div change to button

div change to button
Submitted by mtac - a month ago
0
javascript

Match markdown link

Regex match markdown link
Submitted by anonymous - a month ago
0
javascript

Match Internal Links

Detect internal links in page
Submitted by anonymous - a month ago
0
javascript

分组

显示分组
Submitted by Jason - 2 months ago
0
javascript

script tag

find tag, but you can adapt to other tag
Submitted by anonymous - 2 months ago
0
javascript

匹配图片链接

匹配图片链接
Submitted by anonymous - 2 months ago
0
javascript

rackerrank tweet

Rackerrank regex prepare
Submitted by jcbelarmino - 2 months ago
1
javascript

HTML注释

HTML注释
Submitted by anonymous - 2 months ago
0
javascript

多行注释

多行注释
Submitted by anonymous - 2 months ago

Replace last segment of url?

Vote

0

Regular Expression
javascript

/
(http[s]?:\/\/)(\S+\/)*(?!=\/$|$)([^\/]+\/)*(?=\/$|$)
/
gm

Description

Loading markdown...
Submitted by anonymous - 5 months ago