I am trying to find the best regular expression pattern to extract a sub string from a string.
The string is of the type,
0816606366.Univ.of.Minnesota.Pr.Minnesota.Messenia.Expedition.Reconstructing.a.Bronze.Age.Regional.Environment.Jun.1972.pdf
I would like to create a regex that would give me everything after the first period. So in this case, the required sub string would be,
Univ.of.Minnesota.Pr.Minnesota.Messenia.Expedition.Reconstructing.a.Bronze.Age.Regional.Environment.Jun.1972.pdf
I tried
\w+\w*[\w]*
and everything else in between but Im just not able to get the result I want. Could someone please point me in the right direction?
Thank you
edit: My apologies. I forgot to mention the programming language I was using. I am using Python and the re module that it comes with.
and replacement is
Documentation is:
\dmatch a digit\d+match more than one digit\d+\.followed by a “.”\d+\..+followed by anything\d+\.(.+)capture the “anything” chunki tested it at RegEx Planet:
Regular Expression:
\d+\.(.+)Replacement:
$1Test String#1:
0816606366.Univ.of.Minnesota.Pr.Minnesota.Messenia.Expedition.Reconstructing.a.Bronze.Age.Regional.Environment.Jun.1972.pdfResult:
Univ.of.Minnesota.Pr.Minnesota.Messenia.Expedition.Reconstructing.a.Bronze.Age.Regional.Environment.Jun.1972.pdf