Regular Expressions 101

Community Library Entry

-1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=\D)(41|5|6|81)(?:\s*[^a-zA-Z0-9\s]\s*)(?!20457)\d{5}(?=\D)|(?<=\D)(3|7|8|9)(?:\s*[^a-zA-Z0-9\s]\s*)\d{6}(?=\D)|(?<=\D)(12|13)(?:\s*[^a-zA-Z0-9\s]\s*)\d{4}(?=\D)
/
gm

Description

den finder referencer der starter med afdelingsnummer efterfulgt af fil-ref

Submitted by anonymous - a year ago