0
i have the following string ==> "The guy from Pamonha crashed his car into the guy’s car" I am wanting to extract starting from ("the guy ...") and ending in ("... the car")$ someone could help me with this RE
0
i have the following string ==> "The guy from Pamonha crashed his car into the guy’s car" I am wanting to extract starting from ("the guy ...") and ending in ("... the car")$ someone could help me with this RE
2
If the goal is just to select this piece you could go straight to the point:
/o cara da pamonha bateu com o carro/
Or you can use this pattern:
/o cara(.*)no carro/
See the example.
UPDATE
So if you want to stop at the first word "car" and return everything from the beginning of the sentence use this pattern:
/^(.*?)carro/
Browser other questions tagged python regex
You are not signed in. Login or sign up in order to post.
that question is only an illustration of my real problem and there is a Portuguese import in the string I want my regex end in the first car word and not in the second car word look what happened i.stack.Imgur.com/Qzojs.png
– user45474
I don’t understand what exactly you want to extract? You can give more details?
– MagicHat
@Magichat in my string has two words car. I want my re to end at the first word car
– user45474
Put the re that has tried and the mistake that is giving...
– MagicHat
see the update I made
– zwitterion
solved your problem?
– zwitterion
@zwitterion positive! thanks for the helpfulness :)
– user45474