Regular Expressions 101

Community Patterns

Get File name (no ext) from pathname

0

Regular Expression
PCRE (PHP <7.3)

/
[^\\]*(?=[.][a-zA-Z]+$)
/
gm

Description

[Event "Live Chess"] [Site "Chess.com"] [Date "2019.01.05"] [Round "-"] [White "ahihi3138"] [Black "gcao1"] [Result "0-1"] [WhiteElo "1298"] [BlackElo "1338"] [TimeControl "300"] [EndTime "6:39:11 PST"] [Termination "gcao1 won by resignation"]

Submitted by anonymous - 4 years ago