Regular Expressions 101

Save & Share

  • Save new Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s
  • Add to Community Library

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
No Match

r"
"
g

Test String

Substitution

Processing...

Code Generator

Generated Code

#include <MsgBoxConstants.au3> ; to declare the Constants of MsgBox Local $sRegex = "(\W)\W+[0-9]+" Local $sString = "THE WASTE LAND" & @CRLF & _ "By T. S. Eliot" & @CRLF & _ "" & @CRLF & _ " "Nam Sibyllam quidem Cumis ego ipse oculis meis" & @CRLF & _ " vidi in ampulla pendere, et cum illi pueri dicerent:" & @CRLF & _ " Σίβυλλα τί θέλεις; respondebat illa: ἀποθανεῖν θέλω."" & @CRLF & _ "" & @CRLF & _ " For Ezra Pound" & @CRLF & _ " il miglior fabbro" & @CRLF & _ "" & @CRLF & _ "I. THE BURIAL OF THE DEAD" & @CRLF & _ "" & @CRLF & _ " April is the cruellest month, breeding" & @CRLF & _ " Lilacs out of the dead land, mixing" & @CRLF & _ " Memory and desire, stirring" & @CRLF & _ " Dull roots with spring rain." & @CRLF & _ " Winter kept us warm, covering" & @CRLF & _ " Earth in forgetful snow, feeding" & @CRLF & _ " A little life with dried tubers." & @CRLF & _ " Summer surprised us, coming over the Starnbergersee" & @CRLF & _ " With a shower of rain; we stopped in the colonnade," & @CRLF & _ " And went on in sunlight, into the Hofgarten, 10" & @CRLF & _ " And drank coffee, and talked for an hour." & @CRLF & _ " Bin gar keine Russin, stamm' aus Litauen, echt deutsch." & @CRLF & _ " And when we were children, staying at the archduke's," & @CRLF & _ " My cousin's, he took me out on a sled," & @CRLF & _ " And I was frightened. He said, Marie," & @CRLF & _ " Marie, hold on tight. And down we went." & @CRLF & _ " In the mountains, there you feel free." & @CRLF & _ " I read, much of the night, and go south in the winter." & @CRLF & _ "" & @CRLF & _ " What are the roots that clutch, what branches grow" & @CRLF & _ " Out of this stony rubbish? Son of man, 20" & @CRLF & _ " You cannot say, or guess, for you know only" & @CRLF & _ " A heap of broken images, where the sun beats," & @CRLF & _ " And the dead tree gives no shelter, the cricket no relief," & @CRLF & _ " And the dry stone no sound of water. Only" & @CRLF & _ " There is shadow under this red rock," & @CRLF & _ " (Come in under the shadow of this red rock)," & @CRLF & _ " And I will show you something different from either" & @CRLF & _ " Your shadow at morning striding behind you" & @CRLF & _ " Or your shadow at evening rising to meet you;" & @CRLF & _ " I will show you fear in a handful of dust. 30" & @CRLF & _ " Frisch weht der Wind" & @CRLF & _ " Der Heimat zu" & @CRLF & _ " Mein Irisch Kind," & @CRLF & _ " Wo weilest du?" & @CRLF & _ " "You gave me hyacinths first a year ago;" & @CRLF & _ " "They called me the hyacinth girl."" & @CRLF & _ " —Yet when we came back, late, from the Hyacinth garden," & @CRLF & _ " Your arms full, and your hair wet, I could not" & @CRLF & _ " Speak, and my eyes failed, I was neither" & @CRLF & _ " Living nor dead, and I knew nothing, 40" & @CRLF & _ " Looking into the heart of light, the silence." & @CRLF & _ " Oed' und leer das Meer." & @CRLF & _ "" & @CRLF & _ " Madame Sosostris, famous clairvoyante," & @CRLF & _ " Had a bad cold, nevertheless" & @CRLF & _ " Is known to be the wisest woman in Europe," & @CRLF & _ " With a wicked pack of cards. Here, said she," & @CRLF & _ " Is your card, the drowned Phoenician Sailor," & @CRLF & _ " (Those are pearls that were his eyes. Look!)" & @CRLF & _ " Here is Belladonna, the Lady of the Rocks," & @CRLF & _ " The lady of situations. 50" & @CRLF & _ " Here is the man with three staves, and here the Wheel," & @CRLF & _ " And here is the one-eyed merchant, and this card," & @CRLF & _ " Which is blank, is something he carries on his back," & @CRLF & _ " Which I am forbidden to see. I do not find" & @CRLF & _ " The Hanged Man. Fear death by water." & @CRLF & _ " I see crowds of people, walking round in a ring." & @CRLF & _ " Thank you. If you see dear Mrs. Equitone," & @CRLF & _ " Tell her I bring the horoscope myself:" & @CRLF & _ " One must be so careful these days." & @CRLF & _ "" & @CRLF & _ " Unreal City, 60" & @CRLF & _ " Under the brown fog of a winter dawn," & @CRLF & _ " A crowd flowed over London Bridge, so many," & @CRLF & _ " I had not thought death had undone so many." & @CRLF & _ " Sighs, short and infrequent, were exhaled," & @CRLF & _ " And each man fixed his eyes before his feet." & @CRLF & _ " Flowed up the hill and down King William Street," & @CRLF & _ " To where Saint Mary Woolnoth kept the hours" & @CRLF & _ " With a dead sound on the final stroke of nine." & @CRLF & _ " There I saw one I knew, and stopped him, crying "Stetson!" & @CRLF & _ " "You who were with me in the ships at Mylae! 70" & @CRLF & _ " "That corpse you planted last year in your garden," & @CRLF & _ " "Has it begun to sprout? Will it bloom this year?" & @CRLF & _ " "Or has the sudden frost disturbed its bed?" & @CRLF & _ " "Oh keep the Dog far hence, that's friend to men," & @CRLF & _ " "Or with his nails he'll dig it up again!" & @CRLF & _ " "You! hypocrite lecteur!—mon semblable,—mon frère!"" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "II. A GAME OF CHESS" & @CRLF & _ "" & @CRLF & _ " The Chair she sat in, like a burnished throne," & @CRLF & _ " Glowed on the marble, where the glass" & @CRLF & _ " Held up by standards wrought with fruited vines" & @CRLF & _ " From which a golden Cupidon peeped out 80" & @CRLF & _ " (Another hid his eyes behind his wing)" & @CRLF & _ " Doubled the flames of sevenbranched candelabra" & @CRLF & _ " Reflecting light upon the table as" & @CRLF & _ " The glitter of her jewels rose to meet it," & @CRLF & _ " From satin cases poured in rich profusion." & @CRLF & _ " In vials of ivory and coloured glass" & @CRLF & _ " Unstoppered, lurked her strange synthetic perfumes," & @CRLF & _ " Unguent, powdered, or liquid—troubled, confused" & @CRLF & _ " And drowned the sense in odours; stirred by the air" & @CRLF & _ " That freshened from the window, these ascended 90" & @CRLF & _ " In fattening the prolonged candle-flames," & @CRLF & _ " Flung their smoke into the laquearia," & @CRLF & _ " Stirring the pattern on the coffered ceiling." & @CRLF & _ " Huge sea-wood fed with copper" & @CRLF & _ " Burned green and orange, framed by the coloured stone," & @CRLF & _ " In which sad light a carvèd dolphin swam." & @CRLF & _ " Above the antique mantel was displayed" & @CRLF & _ " As though a window gave upon the sylvan scene" & @CRLF & _ " The change of Philomel, by the barbarous king" & @CRLF & _ " So rudely forced; yet there the nightingale 100" & @CRLF & _ " Filled all the desert with inviolable voice" & @CRLF & _ " And still she cried, and still the world pursues," & @CRLF & _ " "Jug Jug" to dirty ears." & @CRLF & _ " And other withered stumps of time" & @CRLF & _ " Were told upon the walls; staring forms" & @CRLF & _ " Leaned out, leaning, hushing the room enclosed." & @CRLF & _ " Footsteps shuffled on the stair." & @CRLF & _ " Under the firelight, under the brush, her hair" & @CRLF & _ " Spread out in fiery points" & @CRLF & _ " Glowed into words, then would be savagely still. 110" & @CRLF & _ "" & @CRLF & _ " "My nerves are bad to-night. Yes, bad. Stay with me." & @CRLF & _ " "Speak to me. Why do you never speak. Speak." & @CRLF & _ " "What are you thinking of? What thinking? What?" & @CRLF & _ " "I never know what you are thinking. Think."" & @CRLF & _ "" & @CRLF & _ " I think we are in rats' alley" & @CRLF & _ " Where the dead men lost their bones." & @CRLF & _ "" & @CRLF & _ " "What is that noise?"" & @CRLF & _ " The wind under the door." & @CRLF & _ " "What is that noise now? What is the wind doing?"" & @CRLF & _ " Nothing again nothing. 120" & @CRLF & _ " "Do" & @CRLF & _ " "You know nothing? Do you see nothing? Do you remember" & @CRLF & _ " "Nothing?"" & @CRLF & _ "" & @CRLF & _ " I remember" & @CRLF & _ " Those are pearls that were his eyes." & @CRLF & _ " "Are you alive, or not? Is there nothing in your head?"" & @CRLF & _ " But" & @CRLF & _ " O O O O that Shakespeherian Rag—" & @CRLF & _ " It's so elegant" & @CRLF & _ " So intelligent 130" & @CRLF & _ " "What shall I do now? What shall I do?"" & @CRLF & _ " I shall rush out as I am, and walk the street" & @CRLF & _ " "With my hair down, so. What shall we do tomorrow?" & @CRLF & _ " "What shall we ever do?"" & @CRLF & _ " The hot water at ten." & @CRLF & _ " And if it rains, a closed car at four." & @CRLF & _ " And we shall play a game of chess," & @CRLF & _ " Pressing lidless eyes and waiting for a knock upon the door." & @CRLF & _ "" & @CRLF & _ " When Lil's husband got demobbed, I said—" & @CRLF & _ " I didn't mince my words, I said to her myself, 140" & @CRLF & _ " HURRY UP PLEASE IT'S TIME" & @CRLF & _ " Now Albert's coming back, make yourself a bit smart." & @CRLF & _ " He'll want to know what you done with that money he gave you" & @CRLF & _ " To get yourself some teeth. He did, I was there." & @CRLF & _ " You have them all out, Lil, and get a nice set," & @CRLF & _ " He said, I swear, I can't bear to look at you." & @CRLF & _ " And no more can't I, I said, and think of poor Albert," & @CRLF & _ " He's been in the army four years, he wants a good time," & @CRLF & _ " And if you don't give it him, there's others will, I said." & @CRLF & _ " Oh is there, she said. Something o' that, I said. 150" & @CRLF & _ " Then I'll know who to thank, she said, and give me a straight look." & @CRLF & _ " HURRY UP PLEASE IT'S TIME" & @CRLF & _ " If you don't like it you can get on with it, I said." & @CRLF & _ " Others can pick and choose if you can't." & @CRLF & _ " But if Albert makes off, it won't be for lack of telling." & @CRLF & _ " You ought to be ashamed, I said, to look so antique." & @CRLF & _ " (And her only thirty-one.)" & @CRLF & _ " I can't help it, she said, pulling a long face," & @CRLF & _ " It's them pills I took, to bring it off, she said." & @CRLF & _ " (She's had five already, and nearly died of young George.) 160" & @CRLF & _ " The chemist said it would be all right, but I've never been the same." & @CRLF & _ " You are a proper fool, I said." & @CRLF & _ " Well, if Albert won't leave you alone, there it is, I said," & @CRLF & _ " What you get married for if you don't want children?" & @CRLF & _ " HURRY UP PLEASE IT'S TIME" & @CRLF & _ " Well, that Sunday Albert was home, they had a hot gammon," & @CRLF & _ " And they asked me in to dinner, to get the beauty of it hot—" & @CRLF & _ " HURRY UP PLEASE IT'S TIME" & @CRLF & _ " HURRY UP PLEASE IT'S TIME" & @CRLF & _ " Goonight Bill. Goonight Lou. Goonight May. Goonight. 170" & @CRLF & _ " Ta ta. Goonight. Goonight." & @CRLF & _ " Good night, ladies, good night, sweet ladies, good night, good night." & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "III. THE FIRE SERMON" & @CRLF & _ "" & @CRLF & _ " The river's tent is broken: the last fingers of leaf" & @CRLF & _ " Clutch and sink into the wet bank. The wind" & @CRLF & _ " Crosses the brown land, unheard. The nymphs are departed." & @CRLF & _ " Sweet Thames, run softly, till I end my song." & @CRLF & _ " The river bears no empty bottles, sandwich papers," & @CRLF & _ " Silk handkerchiefs, cardboard boxes, cigarette ends" & @CRLF & _ " Or other testimony of summer nights. The nymphs are departed." & @CRLF & _ " And their friends, the loitering heirs of city directors; 180" & @CRLF & _ " Departed, have left no addresses." & @CRLF & _ " By the waters of Leman I sat down and wept . . ." & @CRLF & _ " Sweet Thames, run softly till I end my song," & @CRLF & _ " Sweet Thames, run softly, for I speak not loud or long." & @CRLF & _ " But at my back in a cold blast I hear" & @CRLF & _ " The rattle of the bones, and chuckle spread from ear to ear." & @CRLF & _ " A rat crept softly through the vegetation" & @CRLF & _ " Dragging its slimy belly on the bank" & @CRLF & _ " While I was fishing in the dull canal" & @CRLF & _ " On a winter evening round behind the gashouse 190" & @CRLF & _ " Musing upon the king my brother's wreck" & @CRLF & _ " And on the king my father's death before him." & @CRLF & _ " White bodies naked on the low damp ground" & @CRLF & _ " And bones cast in a little low dry garret," & @CRLF & _ " Rattled by the rat's foot only, year to year." & @CRLF & _ " But at my back from time to time I hear" & @CRLF & _ " The sound of horns and motors, which shall bring" & @CRLF & _ " Sweeney to Mrs. Porter in the spring." & @CRLF & _ " O the moon shone bright on Mrs. Porter" & @CRLF & _ " And on her daughter 200" & @CRLF & _ " They wash their feet in soda water" & @CRLF & _ " Et O ces voix d'enfants, chantant dans la coupole!" & @CRLF & _ "" & @CRLF & _ " Twit twit twit" & @CRLF & _ " Jug jug jug jug jug jug" & @CRLF & _ " So rudely forc'd." & @CRLF & _ " Tereu" & @CRLF & _ "" & @CRLF & _ " Unreal City" & @CRLF & _ " Under the brown fog of a winter noon" & @CRLF & _ " Mr. Eugenides, the Smyrna merchant" & @CRLF & _ " Unshaven, with a pocket full of currants 210" & @CRLF & _ " C.i.f. London: documents at sight," & @CRLF & _ " Asked me in demotic French" & @CRLF & _ " To luncheon at the Cannon Street Hotel" & @CRLF & _ " Followed by a weekend at the Metropole." & @CRLF & _ "" & @CRLF & _ " At the violet hour, when the eyes and back" & @CRLF & _ " Turn upward from the desk, when the human engine waits" & @CRLF & _ " Like a taxi throbbing waiting," & @CRLF & _ " I Tiresias, though blind, throbbing between two lives," & @CRLF & _ " Old man with wrinkled female breasts, can see" & @CRLF & _ " At the violet hour, the evening hour that strives 220" & @CRLF & _ " Homeward, and brings the sailor home from sea," & @CRLF & _ " The typist home at teatime, clears her breakfast, lights" & @CRLF & _ " Her stove, and lays out food in tins." & @CRLF & _ " Out of the window perilously spread" & @CRLF & _ " Her drying combinations touched by the sun's last rays," & @CRLF & _ " On the divan are piled (at night her bed)" & @CRLF & _ " Stockings, slippers, camisoles, and stays." & @CRLF & _ " I Tiresias, old man with wrinkled dugs" & @CRLF & _ " Perceived the scene, and foretold the rest—" & @CRLF & _ " I too awaited the expected guest. 230" & @CRLF & _ " He, the young man carbuncular, arrives," & @CRLF & _ " A small house agent's clerk, with one bold stare," & @CRLF & _ " One of the low on whom assurance sits" & @CRLF & _ " As a silk hat on a Bradford millionaire." & @CRLF & _ " The time is now propitious, as he guesses," & @CRLF & _ " The meal is ended, she is bored and tired," & @CRLF & _ " Endeavours to engage her in caresses" & @CRLF & _ " Which still are unreproved, if undesired." & @CRLF & _ " Flushed and decided, he assaults at once;" & @CRLF & _ " Exploring hands encounter no defence; 240" & @CRLF & _ " His vanity requires no response," & @CRLF & _ " And makes a welcome of indifference." & @CRLF & _ " (And I Tiresias have foresuffered all" & @CRLF & _ " Enacted on this same divan or bed;" & @CRLF & _ " I who have sat by Thebes below the wall" & @CRLF & _ " And walked among the lowest of the dead.)" & @CRLF & _ " Bestows one final patronising kiss," & @CRLF & _ " And gropes his way, finding the stairs unlit . . ." & @CRLF & _ "" & @CRLF & _ " She turns and looks a moment in the glass," & @CRLF & _ " Hardly aware of her departed lover; 250" & @CRLF & _ " Her brain allows one half-formed thought to pass:" & @CRLF & _ " "Well now that's done: and I'm glad it's over."" & @CRLF & _ " When lovely woman stoops to folly and" & @CRLF & _ " Paces about her room again, alone," & @CRLF & _ " She smooths her hair with automatic hand," & @CRLF & _ " And puts a record on the gramophone." & @CRLF & _ "" & @CRLF & _ " "This music crept by me upon the waters"" & @CRLF & _ " And along the Strand, up Queen Victoria Street." & @CRLF & _ " O City city, I can sometimes hear" & @CRLF & _ " Beside a public bar in Lower Thames Street, 260" & @CRLF & _ " The pleasant whining of a mandoline" & @CRLF & _ " And a clatter and a chatter from within" & @CRLF & _ " Where fishmen lounge at noon: where the walls" & @CRLF & _ " Of Magnus Martyr hold" & @CRLF & _ " Inexplicable splendour of Ionian white and gold." & @CRLF & _ "" & @CRLF & _ " The river sweats" & @CRLF & _ " Oil and tar" & @CRLF & _ " The barges drift" & @CRLF & _ " With the turning tide" & @CRLF & _ " Red sails 270" & @CRLF & _ " Wide" & @CRLF & _ " To leeward, swing on the heavy spar." & @CRLF & _ " The barges wash" & @CRLF & _ " Drifting logs" & @CRLF & _ " Down Greenwich reach" & @CRLF & _ " Past the Isle of Dogs." & @CRLF & _ " Weialala leia" & @CRLF & _ " Wallala leialala" & @CRLF & _ " Elizabeth and Leicester" & @CRLF & _ " Beating oars 280" & @CRLF & _ " The stern was formed" & @CRLF & _ " A gilded shell" & @CRLF & _ " Red and gold" & @CRLF & _ " The brisk swell" & @CRLF & _ " Rippled both shores" & @CRLF & _ " Southwest wind" & @CRLF & _ " Carried down stream" & @CRLF & _ " The peal of bells" & @CRLF & _ " White towers" & @CRLF & _ " Weialala leia 290" & @CRLF & _ " Wallala leialala" & @CRLF & _ "" & @CRLF & _ " "Trams and dusty trees." & @CRLF & _ " Highbury bore me. Richmond and Kew" & @CRLF & _ " Undid me. By Richmond I raised my knees" & @CRLF & _ " Supine on the floor of a narrow canoe."" & @CRLF & _ "" & @CRLF & _ " "My feet are at Moorgate, and my heart" & @CRLF & _ " Under my feet. After the event" & @CRLF & _ " He wept. He promised 'a new start'." & @CRLF & _ " I made no comment. What should I resent?"" & @CRLF & _ " "On Margate Sands. 300" & @CRLF & _ " I can connect" & @CRLF & _ " Nothing with nothing." & @CRLF & _ " The broken fingernails of dirty hands." & @CRLF & _ " My people humble people who expect" & @CRLF & _ " Nothing."" & @CRLF & _ " la la" & @CRLF & _ "" & @CRLF & _ " To Carthage then I came" & @CRLF & _ "" & @CRLF & _ " Burning burning burning burning" & @CRLF & _ " O Lord Thou pluckest me out" & @CRLF & _ " O Lord Thou pluckest me out 310" & @CRLF & _ "" & @CRLF & _ " " & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "IV. DEATH BY WATER" & @CRLF & _ "" & @CRLF & _ " Phlebas the Phoenician, a fortnight dead," & @CRLF & _ " Forgot the cry of gulls, and the deep sea swell" & @CRLF & _ " And the profit and loss." & @CRLF & _ " A current under sea" & @CRLF & _ " Picked his bones in whispers. As he rose and fell" & @CRLF & _ " He passed the stages of his age and youth" & @CRLF & _ " Entering the whirlpool." & @CRLF & _ " Gentile or Jew" & @CRLF & _ " O you who turn the wheel and look to windward, 320" & @CRLF & _ " Consider Phlebas, who was once handsome and tall as you." & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "V. WHAT THE THUNDER SAID" & @CRLF & _ "" & @CRLF & _ " After the torchlight red on sweaty faces" & @CRLF & _ " After the frosty silence in the gardens" & @CRLF & _ " After the agony in stony places" & @CRLF & _ " The shouting and the crying" & @CRLF & _ " Prison and palace and reverberation" & @CRLF & _ " Of thunder of spring over distant mountains" & @CRLF & _ " He who was living is now dead" & @CRLF & _ " We who were living are now dying" & @CRLF & _ " With a little patience 330" & @CRLF & _ "" & @CRLF & _ " Here is no water but only rock" & @CRLF & _ " Rock and no water and the sandy road" & @CRLF & _ " The road winding above among the mountains" & @CRLF & _ " Which are mountains of rock without water" & @CRLF & _ " If there were water we should stop and drink" & @CRLF & _ " Amongst the rock one cannot stop or think" & @CRLF & _ " Sweat is dry and feet are in the sand" & @CRLF & _ " If there were only water amongst the rock" & @CRLF & _ " Dead mountain mouth of carious teeth that cannot spit" & @CRLF & _ " Here one can neither stand nor lie nor sit 340" & @CRLF & _ " There is not even silence in the mountains" & @CRLF & _ " But dry sterile thunder without rain" & @CRLF & _ " There is not even solitude in the mountains" & @CRLF & _ " But red sullen faces sneer and snarl" & @CRLF & _ " From doors of mudcracked houses" & @CRLF & _ " If there were water" & @CRLF & _ " And no rock" & @CRLF & _ " If there were rock" & @CRLF & _ " And also water" & @CRLF & _ " And water 350" & @CRLF & _ " A spring" & @CRLF & _ " A pool among the rock" & @CRLF & _ " If there were the sound of water only" & @CRLF & _ " Not the cicada" & @CRLF & _ " And dry grass singing" & @CRLF & _ " But sound of water over a rock" & @CRLF & _ " Where the hermit-thrush sings in the pine trees" & @CRLF & _ " Drip drop drip drop drop drop drop" & @CRLF & _ " But there is no water" & @CRLF & _ "" & @CRLF & _ " Who is the third who walks always beside you? 360" & @CRLF & _ " When I count, there are only you and I together" & @CRLF & _ " But when I look ahead up the white road" & @CRLF & _ " There is always another one walking beside you" & @CRLF & _ " Gliding wrapt in a brown mantle, hooded" & @CRLF & _ " I do not know whether a man or a woman" & @CRLF & _ " —But who is that on the other side of you?" & @CRLF & _ "" & @CRLF & _ " What is that sound high in the air" & @CRLF & _ " Murmur of maternal lamentation" & @CRLF & _ " Who are those hooded hordes swarming" & @CRLF & _ " Over endless plains, stumbling in cracked earth 370" & @CRLF & _ " Ringed by the flat horizon only" & @CRLF & _ " What is the city over the mountains" & @CRLF & _ " Cracks and reforms and bursts in the violet air" & @CRLF & _ " Falling towers" & @CRLF & _ " Jerusalem Athens Alexandria" & @CRLF & _ " Vienna London" & @CRLF & _ " Unreal" & @CRLF & _ "" & @CRLF & _ " A woman drew her long black hair out tight" & @CRLF & _ " And fiddled whisper music on those strings" & @CRLF & _ " And bats with baby faces in the violet light 380" & @CRLF & _ " Whistled, and beat their wings" & @CRLF & _ " And crawled head downward down a blackened wall" & @CRLF & _ " And upside down in air were towers" & @CRLF & _ " Tolling reminiscent bells, that kept the hours" & @CRLF & _ " And voices singing out of empty cisterns and exhausted wells." & @CRLF & _ "" & @CRLF & _ " In this decayed hole among the mountains" & @CRLF & _ " In the faint moonlight, the grass is singing" & @CRLF & _ " Over the tumbled graves, about the chapel" & @CRLF & _ " There is the empty chapel, only the wind's home." & @CRLF & _ " It has no windows, and the door swings, 390" & @CRLF & _ " Dry bones can harm no one." & @CRLF & _ " Only a cock stood on the rooftree" & @CRLF & _ " Co co rico co co rico" & @CRLF & _ " In a flash of lightning. Then a damp gust" & @CRLF & _ " Bringing rain" & @CRLF & _ "" & @CRLF & _ " Ganga was sunken, and the limp leaves" & @CRLF & _ " Waited for rain, while the black clouds" & @CRLF & _ " Gathered far distant, over Himavant." & @CRLF & _ " The jungle crouched, humped in silence." & @CRLF & _ " Then spoke the thunder 400" & @CRLF & _ " DA" & @CRLF & _ " Datta: what have we given?" & @CRLF & _ " My friend, blood shaking my heart" & @CRLF & _ " The awful daring of a moment's surrender" & @CRLF & _ " Which an age of prudence can never retract" & @CRLF & _ " By this, and this only, we have existed" & @CRLF & _ " Which is not to be found in our obituaries" & @CRLF & _ " Or in memories draped by the beneficent spider" & @CRLF & _ " Or under seals broken by the lean solicitor" & @CRLF & _ " In our empty rooms 410" & @CRLF & _ " DA" & @CRLF & _ " Dayadhvam: I have heard the key" & @CRLF & _ " Turn in the door once and turn once only" & @CRLF & _ " We think of the key, each in his prison" & @CRLF & _ " Thinking of the key, each confirms a prison" & @CRLF & _ " Only at nightfall, aetherial rumours" & @CRLF & _ " Revive for a moment a broken Coriolanus" & @CRLF & _ " DA" & @CRLF & _ " Damyata: The boat responded" & @CRLF & _ " Gaily, to the hand expert with sail and oar 420" & @CRLF & _ " The sea was calm, your heart would have responded" & @CRLF & _ " Gaily, when invited, beating obedient" & @CRLF & _ " To controlling hands" & @CRLF & _ "" & @CRLF & _ " I sat upon the shore" & @CRLF & _ " Fishing, with the arid plain behind me" & @CRLF & _ " Shall I at least set my lands in order?" & @CRLF & _ " London Bridge is falling down falling down falling down" & @CRLF & _ " Poi s'ascose nel foco che gli affina" & @CRLF & _ " Quando fiam ceu chelidon— O swallow swallow" & @CRLF & _ " Le Prince d'Aquitaine à la tour abolie 430" & @CRLF & _ " These fragments I have shored against my ruins" & @CRLF & _ " Why then Ile fit you. Hieronymo's mad againe." & @CRLF & _ " Datta. Dayadhvam. Damyata." & @CRLF & _ " Shantih shantih shantih" Local $sSubst = "\1" 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