Regular Expressions 101

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Match everything enclosed
    (?:...)
  • Capture everything enclosed
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/
gm

Test String

Substitution

Processing...

Code Generator

Generated Code

#include <MsgBoxConstants.au3> ; to declare the Constants of MsgBox Local $sRegex = "(?m)^.*(?= ) " Local $sString = "Ticket" & @CRLF & _ "A/5 21171" & @CRLF & _ "PC 17599" & @CRLF & _ "STON/O2. 3101282" & @CRLF & _ "113803" & @CRLF & _ "373450" & @CRLF & _ "330877" & @CRLF & _ "17463" & @CRLF & _ "349909" & @CRLF & _ "347742" & @CRLF & _ "237736" & @CRLF & _ "PP 9549" & @CRLF & _ "113783" & @CRLF & _ "A/5. 2151" & @CRLF & _ "347082" & @CRLF & _ "350406" & @CRLF & _ "248706" & @CRLF & _ "382652" & @CRLF & _ "244373" & @CRLF & _ "345763" & @CRLF & _ "2649" & @CRLF & _ "239865" & @CRLF & _ "248698" & @CRLF & _ "330923" & @CRLF & _ "113788" & @CRLF & _ "349909" & @CRLF & _ "347077" & @CRLF & _ "2631" & @CRLF & _ "19950" & @CRLF & _ "330959" & @CRLF & _ "349216" & @CRLF & _ "PC 17601" & @CRLF & _ "PC 17569" & @CRLF & _ "335677" & @CRLF & _ "C.A. 24579" & @CRLF & _ "PC 17604" & @CRLF & _ "113789" & @CRLF & _ "2677" & @CRLF & _ "A./5. 2152" & @CRLF & _ "345764" & @CRLF & _ "2651" & @CRLF & _ "7546" & @CRLF & _ "11668" & @CRLF & _ "349253" & @CRLF & _ "SC/Paris 2123" & @CRLF & _ "330958" & @CRLF & _ "S.C./A.4. 23567" & @CRLF & _ "370371" & @CRLF & _ "14311" & @CRLF & _ "2662" & @CRLF & _ "349237" & @CRLF & _ "3101295" & @CRLF & _ "A/4. 39886" & @CRLF & _ "PC 17572" & @CRLF & _ "2926" & @CRLF & _ "113509" & @CRLF & _ "19947" & @CRLF & _ "C.A. 31026" & @CRLF & _ "2697" & @CRLF & _ "C.A. 34651" & @CRLF & _ "CA 2144" & @CRLF & _ "2669" & @CRLF & _ "113572" & @CRLF & _ "36973" & @CRLF & _ "347088" & @CRLF & _ "PC 17605" & @CRLF & _ "2661" & @CRLF & _ "C.A. 29395" & @CRLF & _ "S.P. 3464" & @CRLF & _ "3101281" & @CRLF & _ "315151" & @CRLF & _ "C.A. 33111" & @CRLF & _ "CA 2144" & @CRLF & _ "S.O.C. 14879" & @CRLF & _ "2680" & @CRLF & _ "1601" & @CRLF & _ "348123" & @CRLF & _ "349208" & @CRLF & _ "374746" & @CRLF & _ "248738" & @CRLF & _ "364516" & @CRLF & _ "345767" & @CRLF & _ "345779" & @CRLF & _ "330932" & @CRLF & _ "113059" & @CRLF & _ "SO/C 14885" & @CRLF & _ "3101278" & @CRLF & _ "W./C. 6608" & @CRLF & _ "SOTON/OQ 392086" & @CRLF & _ "19950" & @CRLF & _ "343275" & @CRLF & _ "343276" & @CRLF & _ "347466" & @CRLF & _ "W.E.P. 5734" & @CRLF & _ "C.A. 2315" & @CRLF & _ "364500" & @CRLF & _ "374910" & @CRLF & _ "PC 17754" & @CRLF & _ "PC 17759" & @CRLF & _ "231919" & @CRLF & _ "244367" & @CRLF & _ "349245" & @CRLF & _ "349215" & @CRLF & _ "35281" & @CRLF & _ "7540" & @CRLF & _ "3101276" & @CRLF & _ "349207" & @CRLF & _ "343120" & @CRLF & _ "312991" & @CRLF & _ "349249" & @CRLF & _ "371110" & @CRLF & _ "110465" & @CRLF & _ "2665" & @CRLF & _ "324669" & @CRLF & _ "4136" & @CRLF & _ "2627" & @CRLF & _ "STON/O 2. 3101294" & @CRLF & _ "370369" & @CRLF & _ "11668" & @CRLF & _ "PC 17558" & @CRLF & _ "347082" & @CRLF & _ "S.O.C. 14879" & @CRLF & _ "A4. 54510" & @CRLF & _ "237736" & @CRLF & _ "27267" & @CRLF & _ "35281" & @CRLF & _ "2651" & @CRLF & _ "370372" & @CRLF & _ "C 17369" & @CRLF & _ "2668" & @CRLF & _ "347061" & @CRLF & _ "349241" & @CRLF & _ "SOTON/O.Q. 3101307" & @CRLF & _ "A/5. 3337" & @CRLF & _ "228414" & @CRLF & _ "C.A. 29178" & @CRLF & _ "SC/PARIS 2133" & @CRLF & _ "11752" & @CRLF & _ "113803" & @CRLF & _ "7534" & @CRLF & _ "PC 17593" & @CRLF & _ "2678" & @CRLF & _ "347081" & @CRLF & _ "STON/O2. 3101279" & @CRLF & _ "365222" & @CRLF & _ "231945" & @CRLF & _ "C.A. 33112" & @CRLF & _ "350043" & @CRLF & _ "W./C. 6608" & @CRLF & _ "230080" & @CRLF & _ "244310" & @CRLF & _ "S.O.P. 1166" & @CRLF & _ "113776" & @CRLF & _ "A.5. 11206" & @CRLF & _ "A/5. 851" & @CRLF & _ "Fa 265302" & @CRLF & _ "PC 17597" & @CRLF & _ "35851" & @CRLF & _ "SOTON/OQ 392090" & @CRLF & _ "315037" & @CRLF & _ "CA. 2343" & @CRLF & _ "371362" & @CRLF & _ "C.A. 33595" & @CRLF & _ "347068" & @CRLF & _ "315093" & @CRLF & _ "3101295" & @CRLF & _ "363291" & @CRLF & _ "113505" & @CRLF & _ "347088" & @CRLF & _ "PC 17318" & @CRLF & _ "1601" & @CRLF & _ "111240" & @CRLF & _ "382652" & @CRLF & _ "347742" & @CRLF & _ "STON/O 2. 3101280" & @CRLF & _ "17764" & @CRLF & _ "350404" & @CRLF & _ "4133" & @CRLF & _ "PC 17595" & @CRLF & _ "250653" & @CRLF & _ "LINE" & @CRLF & _ "CA. 2343" & @CRLF & _ "SC/PARIS 2131" & @CRLF & _ "347077" & @CRLF & _ "230136" & @CRLF & _ "315153" & @CRLF & _ "113767" & @CRLF & _ "370365" & @CRLF & _ "111428" & @CRLF & _ "364849" & @CRLF & _ "349247" & @CRLF & _ "234604" & @CRLF & _ "28424" & @CRLF & _ "350046" & @CRLF & _ "230080" & @CRLF & _ "PC 17610" & @CRLF & _ "PC 17569" & @CRLF & _ "368703" & @CRLF & _ "4579" & @CRLF & _ "370370" & @CRLF & _ "248747" & @CRLF & _ "345770" & @CRLF & _ "CA. 2343" & @CRLF & _ "3101264" & @CRLF & _ "2628" & @CRLF & _ "A/5 3540" & @CRLF & _ "347054" & @CRLF & _ "3101278" & @CRLF & _ "2699" & @CRLF & _ "367231" & @CRLF & _ "112277" & @CRLF & _ "SOTON/O.Q. 3101311" & @CRLF & _ "F.C.C. 13528" & @CRLF & _ "A/5 21174" & @CRLF & _ "250646" & @CRLF & _ "367229" & @CRLF & _ "35273" & @CRLF & _ "STON/O2. 3101283" & @CRLF & _ "243847" & @CRLF & _ "11813" & @CRLF & _ "W/C 14208" & @CRLF & _ "SOTON/OQ 392089" & @CRLF & _ "220367" & @CRLF & _ "21440" & @CRLF & _ "349234" & @CRLF & _ "19943" & @CRLF & _ "PP 4348" & @CRLF & _ "SW/PP 751" & @CRLF & _ "A/5 21173" & @CRLF & _ "236171" & @CRLF & _ "4133" & @CRLF & _ "36973" & @CRLF & _ "347067" & @CRLF & _ "237442" & @CRLF & _ "347077" & @CRLF & _ "C.A. 29566" & @CRLF & _ "W./C. 6609" & @CRLF & _ "26707" & @CRLF & _ "C.A. 31921" & @CRLF & _ "28665" & @CRLF & _ "SCO/W 1585" & @CRLF & _ "2665" & @CRLF & _ "367230" & @CRLF & _ "W./C. 14263" & @CRLF & _ "STON/O 2. 3101275" & @CRLF & _ "2694" & @CRLF & _ "19928" & @CRLF & _ "347071" & @CRLF & _ "250649" & @CRLF & _ "11751" & @CRLF & _ "244252" & @CRLF & _ "362316" & @CRLF & _ "347054" & @CRLF & _ "113514" & @CRLF & _ "A/5. 3336" & @CRLF & _ "370129" & @CRLF & _ "2650" & @CRLF & _ "PC 17585" & @CRLF & _ "110152" & @CRLF & _ "PC 17755" & @CRLF & _ "230433" & @CRLF & _ "384461" & @CRLF & _ "347077" & @CRLF & _ "110413" & @CRLF & _ "112059" & @CRLF & _ "382649" & @CRLF & _ "C.A. 17248" & @CRLF & _ "3101295" & @CRLF & _ "347083" & @CRLF & _ "PC 17582" & @CRLF & _ "PC 17760" & @CRLF & _ "113798" & @CRLF & _ "LINE" & @CRLF & _ "250644" & @CRLF & _ "PC 17596" & @CRLF & _ "370375" & @CRLF & _ "13502" & @CRLF & _ "347073" & @CRLF & _ "239853" & @CRLF & _ "382652" & @CRLF & _ "C.A. 2673" & @CRLF & _ "336439" & @CRLF & _ "347464" & @CRLF & _ "345778" & @CRLF & _ "A/5. 10482" & @CRLF & _ "113056" & @CRLF & _ "349239" & @CRLF & _ "345774" & @CRLF & _ "349206" & @CRLF & _ "237798" & @CRLF & _ "370373" & @CRLF & _ "19877" & @CRLF & _ "11967" & @CRLF & _ "SC/Paris 2163" & @CRLF & _ "349236" & @CRLF & _ "349233" & @CRLF & _ "PC 17612" & @CRLF & _ "2693" & @CRLF & _ "113781" & @CRLF & _ "19988" & @CRLF & _ "PC 17558" & @CRLF & _ "9234" & @CRLF & _ "367226" & @CRLF & _ "LINE" & @CRLF & _ "226593" & @CRLF & _ "A/5 2466" & @CRLF & _ "113781" & @CRLF & _ "17421" & @CRLF & _ "PC 17758" & @CRLF & _ "P/PP 3381" & @CRLF & _ "PC 17485" & @CRLF & _ "11767" & @CRLF & _ "PC 17608" & @CRLF & _ "250651" & @CRLF & _ "349243" & @CRLF & _ "F.C.C. 13529" & @CRLF & _ "347470" & @CRLF & _ "244367" & @CRLF & _ "29011" & @CRLF & _ "36928" & @CRLF & _ "16966" & @CRLF & _ "A/5 21172" & @CRLF & _ "349219" & @CRLF & _ "234818" & @CRLF & _ "248738" & @CRLF & _ "CA. 2343" & @CRLF & _ "PC 17760" & @CRLF & _ "345364" & @CRLF & _ "28551" & @CRLF & _ "363291" & @CRLF & _ "111361" & @CRLF & _ "367226" & @CRLF & _ "113043" & @CRLF & _ "PC 17582" & @CRLF & _ "345764" & @CRLF & _ "PC 17611" & @CRLF & _ "349225" & @CRLF & _ "113776" & @CRLF & _ "16966" & @CRLF & _ "7598" & @CRLF & _ "113784" & @CRLF & _ "230080" & @CRLF & _ "19950" & @CRLF & _ "248740" & @CRLF & _ "244361" & @CRLF & _ "229236" & @CRLF & _ "248733" & @CRLF & _ "31418" & @CRLF & _ "386525" & @CRLF & _ "C.A. 37671" & @CRLF & _ "315088" & @CRLF & _ "7267" & @CRLF & _ "113510" & @CRLF & _ "2695" & @CRLF & _ "349237" & @CRLF & _ "2647" & @CRLF & _ "345783" & @CRLF & _ "113505" & @CRLF & _ "237671" & @CRLF & _ "330931" & @CRLF & _ "330980" & @CRLF & _ "347088" & @CRLF & _ "SC/PARIS 2167" & @CRLF & _ "2691" & @CRLF & _ "SOTON/O.Q. 3101310" & @CRLF & _ "370365" & @CRLF & _ "C 7076" & @CRLF & _ "110813" & @CRLF & _ "2626" & @CRLF & _ "14313" & @CRLF & _ "PC 17477" & @CRLF & _ "11765" & @CRLF & _ "3101267" & @CRLF & _ "323951" & @CRLF & _ "PC 17760" & @CRLF & _ "349909" & @CRLF & _ "PC 17604" & @CRLF & _ "C 7077" & @CRLF & _ "113503" & @CRLF & _ "2648" & @CRLF & _ "347069" & @CRLF & _ "PC 17757" & @CRLF & _ "2653" & @CRLF & _ "STON/O 2. 3101293" & @CRLF & _ "113789" & @CRLF & _ "349227" & @CRLF & _ "S.O.C. 14879" & @CRLF & _ "CA 2144" & @CRLF & _ "27849" & @CRLF & _ "367655" & @CRLF & _ "SC 1748" & @CRLF & _ "113760" & @CRLF & _ "350034" & @CRLF & _ "3101277" & @CRLF & _ "35273" & @CRLF & _ "PP 9549" & @CRLF & _ "350052" & @CRLF & _ "350407" & @CRLF & _ "28403" & @CRLF & _ "244278" & @CRLF & _ "240929" & @CRLF & _ "STON/O 2. 3101289" & @CRLF & _ "341826" & @CRLF & _ "4137" & @CRLF & _ "STON/O2. 3101279" & @CRLF & _ "315096" & @CRLF & _ "28664" & @CRLF & _ "347064" & @CRLF & _ "29106" & @CRLF & _ "312992" & @CRLF & _ "4133" & @CRLF & _ "349222" & @CRLF & _ "394140" & @CRLF & _ "19928" & @CRLF & _ "239853" & @CRLF & _ "STON/O 2. 3101269" & @CRLF & _ "343095" & @CRLF & _ "28220" & @CRLF & _ "250652" & @CRLF & _ "28228" & @CRLF & _ "345773" & @CRLF & _ "349254" & @CRLF & _ "A/5. 13032" & @CRLF & _ "315082" & @CRLF & _ "347080" & @CRLF & _ "370129" & @CRLF & _ "A/4. 34244" & @CRLF & _ "2003" & @CRLF & _ "250655" & @CRLF & _ "364851" & @CRLF & _ "SOTON/O.Q. 392078" & @CRLF & _ "110564" & @CRLF & _ "376564" & @CRLF & _ "SC/AH 3085" & @CRLF & _ "STON/O 2. 3101274" & @CRLF & _ "13507" & @CRLF & _ "113760" & @CRLF & _ "W./C. 6608" & @CRLF & _ "29106" & @CRLF & _ "19950" & @CRLF & _ "C.A. 18723" & @CRLF & _ "F.C.C. 13529" & @CRLF & _ "345769" & @CRLF & _ "347076" & @CRLF & _ "230434" & @CRLF & _ "65306" & @CRLF & _ "33638" & @CRLF & _ "250644" & @CRLF & _ "113794" & @CRLF & _ "2666" & @CRLF & _ "113786" & @CRLF & _ "C.A. 34651" & @CRLF & _ "65303" & @CRLF & _ "113051" & @CRLF & _ "17453" & @CRLF & _ "A/5 2817" & @CRLF & _ "349240" & @CRLF & _ "13509" & @CRLF & _ "17464" & @CRLF & _ "F.C.C. 13531" & @CRLF & _ "371060" & @CRLF & _ "19952" & @CRLF & _ "364506" & @CRLF & _ "111320" & @CRLF & _ "234360" & @CRLF & _ "A/S 2816" & @CRLF & _ "SOTON/O.Q. 3101306" & @CRLF & _ "239853" & @CRLF & _ "113792" & @CRLF & _ "36209" & @CRLF & _ "2666" & @CRLF & _ "323592" & @CRLF & _ "315089" & @CRLF & _ "C.A. 34651" & @CRLF & _ "SC/AH Basle 541" & @CRLF & _ "7553" & @CRLF & _ "110465" & @CRLF & _ "31027" & @CRLF & _ "3460" & @CRLF & _ "350060" & @CRLF & _ "3101298" & @CRLF & _ "CA 2144" & @CRLF & _ "239854" & @CRLF & _ "A/5 3594" & @CRLF & _ "4134" & @CRLF & _ "11967" & @CRLF & _ "4133" & @CRLF & _ "19943" & @CRLF & _ "11771" & @CRLF & _ "A.5. 18509" & @CRLF & _ "C.A. 37671" & @CRLF & _ "65304" & @CRLF & _ "SOTON/OQ 3101317" & @CRLF & _ "113787" & @CRLF & _ "PC 17609" & @CRLF & _ "A/4 45380" & @CRLF & _ "2627" & @CRLF & _ "36947" & @CRLF & _ "C.A. 6212" & @CRLF & _ "113781" & @CRLF & _ "350035" & @CRLF & _ "315086" & @CRLF & _ "364846" & @CRLF & _ "330909" & @CRLF & _ "4135" & @CRLF & _ "110152" & @CRLF & _ "PC 17758" & @CRLF & _ "26360" & @CRLF & _ "111427" & @CRLF & _ "C 4001" & @CRLF & _ "1601" & @CRLF & _ "382651" & @CRLF & _ "SOTON/OQ 3101316" & @CRLF & _ "PC 17473" & @CRLF & _ "PC 17603" & @CRLF & _ "349209" & @CRLF & _ "36967" & @CRLF & _ "C.A. 34260" & @CRLF & _ "371110" & @CRLF & _ "226875" & @CRLF & _ "349242" & @CRLF & _ "12749" & @CRLF & _ "349252" & @CRLF & _ "2624" & @CRLF & _ "111361" & @CRLF & _ "2700" & @CRLF & _ "367232" & @CRLF & _ "W./C. 14258" & @CRLF & _ "PC 17483" & @CRLF & _ "3101296" & @CRLF & _ "29104" & @CRLF & _ "26360" & @CRLF & _ "2641" & @CRLF & _ "2690" & @CRLF & _ "2668" & @CRLF & _ "315084" & @CRLF & _ "F.C.C. 13529" & @CRLF & _ "113050" & @CRLF & _ "PC 17761" & @CRLF & _ "364498" & @CRLF & _ "13568" & @CRLF & _ "WE/P 5735" & @CRLF & _ "347082" & @CRLF & _ "347082" & @CRLF & _ "2908" & @CRLF & _ "PC 17761" & @CRLF & _ "693" & @CRLF & _ "2908" & @CRLF & _ "SC/PARIS 2146" & @CRLF & _ "363291" & @CRLF & _ "C.A. 33112" & @CRLF & _ "17421" & @CRLF & _ "244358" & @CRLF & _ "330979" & @CRLF & _ "2620" & @CRLF & _ "347085" & @CRLF & _ "113807" & @CRLF & _ "11755" & @CRLF & _ "PC 17757" & @CRLF & _ "110413" & @CRLF & _ "345572" & @CRLF & _ "372622" & @CRLF & _ "349251" & @CRLF & _ "218629" & @CRLF & _ "SOTON/OQ 392082" & @CRLF & _ "SOTON/O.Q. 392087" & @CRLF & _ "A/4 48871" & @CRLF & _ "349205" & @CRLF & _ "349909" & @CRLF & _ "2686" & @CRLF & _ "350417" & @CRLF & _ "S.W./PP 752" & @CRLF & _ "11769" & @CRLF & _ "PC 17474" & @CRLF & _ "14312" & @CRLF & _ "A/4. 20589" & @CRLF & _ "358585" & @CRLF & _ "243880" & @CRLF & _ "13507" & @CRLF & _ "2689" & @CRLF & _ "STON/O 2. 3101286" & @CRLF & _ "237789" & @CRLF & _ "17421" & @CRLF & _ "28403" & @CRLF & _ "13049" & @CRLF & _ "3411" & @CRLF & _ "110413" & @CRLF & _ "237565" & @CRLF & _ "13567" & @CRLF & _ "14973" & @CRLF & _ "A./5. 3235" & @CRLF & _ "STON/O 2. 3101273" & @CRLF & _ "36947" & @CRLF & _ "A/5 3902" & @CRLF & _ "364848" & @CRLF & _ "SC/AH 29037" & @CRLF & _ "345773" & @CRLF & _ "248727" & @CRLF & _ "LINE" & @CRLF & _ "2664" & @CRLF & _ "PC 17485" & @CRLF & _ "243847" & @CRLF & _ "349214" & @CRLF & _ "113796" & @CRLF & _ "364511" & @CRLF & _ "111426" & @CRLF & _ "349910" & @CRLF & _ "349246" & @CRLF & _ "113804" & @CRLF & _ "SC/Paris 2123" & @CRLF & _ "PC 17582" & @CRLF & _ "347082" & @CRLF & _ "SOTON/O.Q. 3101305" & @CRLF & _ "367230" & @CRLF & _ "370377" & @CRLF & _ "364512" & @CRLF & _ "220845" & @CRLF & _ "347080" & @CRLF & _ "A/5. 3336" & @CRLF & _ "230136" & @CRLF & _ "31028" & @CRLF & _ "2659" & @CRLF & _ "11753" & @CRLF & _ "2653" & @CRLF & _ "350029" & @CRLF & _ "54636" & @CRLF & _ "36963" & @CRLF & _ "219533" & @CRLF & _ "13502" & @CRLF & _ "349224" & @CRLF & _ "334912" & @CRLF & _ "27042" & @CRLF & _ "347743" & @CRLF & _ "13214" & @CRLF & _ "112052" & @CRLF & _ "347088" & @CRLF & _ "237668" & @CRLF & _ "STON/O 2. 3101292" & @CRLF & _ "C.A. 31921" & @CRLF & _ "3101295" & @CRLF & _ "376564" & @CRLF & _ "350050" & @CRLF & _ "PC 17477" & @CRLF & _ "347088" & @CRLF & _ "1601" & @CRLF & _ "2666" & @CRLF & _ "PC 17572" & @CRLF & _ "349231" & @CRLF & _ "13213" & @CRLF & _ "S.O./P.P. 751" & @CRLF & _ "CA. 2314" & @CRLF & _ "349221" & @CRLF & _ "231919" & @CRLF & _ "8475" & @CRLF & _ "330919" & @CRLF & _ "365226" & @CRLF & _ "S.O.C. 14879" & @CRLF & _ "349223" & @CRLF & _ "364849" & @CRLF & _ "29751" & @CRLF & _ "35273" & @CRLF & _ "PC 17611" & @CRLF & _ "2623" & @CRLF & _ "5727" & @CRLF & _ "349210" & @CRLF & _ "STON/O 2. 3101285" & @CRLF & _ "S.O.C. 14879" & @CRLF & _ "234686" & @CRLF & _ "312993" & @CRLF & _ "A/5 3536" & @CRLF & _ "19996" & @CRLF & _ "29750" & @CRLF & _ "F.C. 12750" & @CRLF & _ "C.A. 24580" & @CRLF & _ "244270" & @CRLF & _ "239856" & @CRLF & _ "349912" & @CRLF & _ "342826" & @CRLF & _ "4138" & @CRLF & _ "CA 2144" & @CRLF & _ "PC 17755" & @CRLF & _ "330935" & @CRLF & _ "PC 17572" & @CRLF & _ "6563" & @CRLF & _ "CA 2144" & @CRLF & _ "29750" & @CRLF & _ "SC/Paris 2123" & @CRLF & _ "3101295" & @CRLF & _ "349228" & @CRLF & _ "350036" & @CRLF & _ "24160" & @CRLF & _ "17474" & @CRLF & _ "349256" & @CRLF & _ "1601" & @CRLF & _ "2672" & @CRLF & _ "113800" & @CRLF & _ "248731" & @CRLF & _ "363592" & @CRLF & _ "35852" & @CRLF & _ "17421" & @CRLF & _ "348121" & @CRLF & _ "PC 17757" & @CRLF & _ "PC 17475" & @CRLF & _ "2691" & @CRLF & _ "36864" & @CRLF & _ "350025" & @CRLF & _ "250655" & @CRLF & _ "223596" & @CRLF & _ "PC 17476" & @CRLF & _ "113781" & @CRLF & _ "2661" & @CRLF & _ "PC 17482" & @CRLF & _ "113028" & @CRLF & _ "19996" & @CRLF & _ "7545" & @CRLF & _ "250647" & @CRLF & _ "348124" & @CRLF & _ "PC 17757" & @CRLF & _ "34218" & @CRLF & _ "36568" & @CRLF & _ "347062" & @CRLF & _ "248727" & @CRLF & _ "350048" & @CRLF & _ "12233" & @CRLF & _ "250643" & @CRLF & _ "113806" & @CRLF & _ "315094" & @CRLF & _ "31027" & @CRLF & _ "36866" & @CRLF & _ "236853" & @CRLF & _ "STON/O2. 3101271" & @CRLF & _ "24160" & @CRLF & _ "2699" & @CRLF & _ "239855" & @CRLF & _ "28425" & @CRLF & _ "233639" & @CRLF & _ "54636" & @CRLF & _ "W./C. 6608" & @CRLF & _ "PC 17755" & @CRLF & _ "349201" & @CRLF & _ "349218" & @CRLF & _ "16988" & @CRLF & _ "19877" & @CRLF & _ "PC 17608" & @CRLF & _ "376566" & @CRLF & _ "STON/O 2. 3101288" & @CRLF & _ "WE/P 5735" & @CRLF & _ "C.A. 2673" & @CRLF & _ "250648" & @CRLF & _ "113773" & @CRLF & _ "335097" & @CRLF & _ "29103" & @CRLF & _ "392096" & @CRLF & _ "345780" & @CRLF & _ "349204" & @CRLF & _ "220845" & @CRLF & _ "250649" & @CRLF & _ "350042" & @CRLF & _ "29108" & @CRLF & _ "363294" & @CRLF & _ "110152" & @CRLF & _ "358585" & @CRLF & _ "SOTON/O2 3101272" & @CRLF & _ "2663" & @CRLF & _ "113760" & @CRLF & _ "347074" & @CRLF & _ "13502" & @CRLF & _ "112379" & @CRLF & _ "364850" & @CRLF & _ "371110" & @CRLF & _ "8471" & @CRLF & _ "345781" & @CRLF & _ "350047" & @CRLF & _ "S.O./P.P. 3" & @CRLF & _ "2674" & @CRLF & _ "29105" & @CRLF & _ "347078" & @CRLF & _ "383121" & @CRLF & _ "364516" & @CRLF & _ "36865" & @CRLF & _ "24160" & @CRLF & _ "2687" & @CRLF & _ "17474" & @CRLF & _ "113501" & @CRLF & _ "W./C. 6607" & @CRLF & _ "SOTON/O.Q. 3101312" & @CRLF & _ "374887" & @CRLF & _ "3101265" & @CRLF & _ "382652" & @CRLF & _ "C.A. 2315" & @CRLF & _ "PC 17593" & @CRLF & _ "12460" & @CRLF & _ "239865" & @CRLF & _ "CA. 2343" & @CRLF & _ "PC 17600" & @CRLF & _ "349203" & @CRLF & _ "28213" & @CRLF & _ "17465" & @CRLF & _ "349244" & @CRLF & _ "2685" & @CRLF & _ "345773" & @CRLF & _ "250647" & @CRLF & _ "C.A. 31921" & @CRLF & _ "113760" & @CRLF & _ "2625" & @CRLF & _ "347089" & @CRLF & _ "347063" & @CRLF & _ "112050" & @CRLF & _ "347087" & @CRLF & _ "248723" & @CRLF & _ "113806" & @CRLF & _ "3474" & @CRLF & _ "A/4 48871" & @CRLF & _ "28206" & @CRLF & _ "347082" & @CRLF & _ "364499" & @CRLF & _ "112058" & @CRLF & _ "STON/O2. 3101290" & @CRLF & _ "S.C./PARIS 2079" & @CRLF & _ "C 7075" & @CRLF & _ "347088" & @CRLF & _ "12749" & @CRLF & _ "315098" & @CRLF & _ "19972" & @CRLF & _ "392096" & @CRLF & _ "3101295" & @CRLF & _ "368323" & @CRLF & _ "1601" & @CRLF & _ "S.C./PARIS 2079" & @CRLF & _ "367228" & @CRLF & _ "113572" & @CRLF & _ "2659" & @CRLF & _ "29106" & @CRLF & _ "2671" & @CRLF & _ "347468" & @CRLF & _ "2223" & @CRLF & _ "PC 17756" & @CRLF & _ "315097" & @CRLF & _ "392092" & @CRLF & _ "1601" & @CRLF & _ "11774" & @CRLF & _ "SOTON/O2 3101287" & @CRLF & _ "S.O./P.P. 3" & @CRLF & _ "113798" & @CRLF & _ "2683" & @CRLF & _ "315090" & @CRLF & _ "C.A. 5547" & @CRLF & _ "CA. 2343" & @CRLF & _ "349213" & @CRLF & _ "248727" & @CRLF & _ "17453" & @CRLF & _ "347082" & @CRLF & _ "347060" & @CRLF & _ "2678" & @CRLF & _ "PC 17592" & @CRLF & _ "244252" & @CRLF & _ "392091" & @CRLF & _ "36928" & @CRLF & _ "113055" & @CRLF & _ "2666" & @CRLF & _ "2629" & @CRLF & _ "350026" & @CRLF & _ "28134" & @CRLF & _ "17466" & @CRLF & _ "CA. 2343" & @CRLF & _ "233866" & @CRLF & _ "236852" & @CRLF & _ "SC/PARIS 2149" & @CRLF & _ "PC 17590" & @CRLF & _ "345777" & @CRLF & _ "347742" & @CRLF & _ "349248" & @CRLF & _ "11751" & @CRLF & _ "695" & @CRLF & _ "345765" & @CRLF & _ "P/PP 3381" & @CRLF & _ "2667" & @CRLF & _ "7534" & @CRLF & _ "349212" & @CRLF & _ "349217" & @CRLF & _ "11767" & @CRLF & _ "230433" & @CRLF & _ "349257" & @CRLF & _ "7552" & @CRLF & _ "C.A./SOTON 34068" & @CRLF & _ "SOTON/OQ 392076" & @CRLF & _ "382652" & @CRLF & _ "211536" & @CRLF & _ "112053" & @CRLF & _ "W./C. 6607" & @CRLF & _ "111369" & @CRLF & _ "370376" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" Local $sSubst = "" Local $sResult = StringRegExpReplace($sString, $sRegex, $sSubst) MsgBox($MB_SYSTEMMODAL, "Result", $sResult)

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm