RECURRENT DONATION
Donate monthly to support
the NeculaiFantanaru.com project
Ikintu cyingenzi kiranga iki gitabo ugereranije nabandi ku isoko muri domaine imwe nuko isobanura ikoresheje ingero ubushobozi bwiza bwumuyobozi. Ntabwo nigeze mvuga ko byoroshye kuba umuyobozi mwiza, ariko niba abantu babishaka...
Nanditse iki gitabo gihuza muburyo bworoshye iterambere ryumuntu hamwe nubuyobozi, kimwe na puzzle, aho ugomba guhuza ibice byose byatanzwe kugirango usubiremo ishusho rusange.
Intego yiki gitabo nukuguha amakuru ukoresheje ingero zifatika no kukwereka uburyo bwo kubona ubushobozi bwo gutuma abandi babona ibintu muburyo bumwe nawe.
Urashobora kureba kode yuzuye hano:HTTPS: // Passatbin .com / x Gn QJ Qs7 Urugero rwa kode ya HTML ruzahindurwa hamwe na kode yububasha. Gukoporora inyandiko yavuzwe haruguru kuri dosiye .html, uyikize ahantuC: \ Ububiko1
xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ro">
Kode ya Powershell hepfo izakoporora ibiri muri tagi ya html kurindi tagi mugusenya amakuru. Ukeneye gusa kuzuza tagi $sourcedir = "C:\Folder1\" $resultsdir = "C:\Folder1\" Get-ChildItem -Path $sourcedir -Filter *.html | ForEach-Object { $content = Get-Content -Path $_.FullName -Raw # Copy the content of the tag $replaceValue = (Select-String -InputObject $content -Pattern '(?<=).Matches.Value $content = $content -replace '(?<=,$replaceValue $content = $content -replace '(?<="@id": ").*(")',$replaceValue # Copy the content of the tag Bidashoboka. Hano hari imvugo ya regex izahindura "Ijambo ryibanze" kuri page ya HTML, ongeraho koma nyuma ya buri jambo. Koresha hamwe na TIRESPad ++ -> CTR + F -> Reba: Imvugo isanzwe SEARCH: (?s)<title>.*?<\/title>.*?<meta\x20name="keywords"\x20content="\K(\w+)|\G[^\w\r\n]+(\w+) REPLACE BY: ?1\l\1:,\x20\l\2 That's all folks. If you like my code, please SHARE IT Urashobora kandi kubona verisiyo ya kode muriPython Latest articles accessed by readers:
Donate via Paypal
RECURRENT DONATIONDonate monthly to support SINGLE DONATIONDonate the desired amount to support Donate by Bank TransferAccount Ron: RO34INGB0000999900448439
Open account at ING Bank
|
||||||||||||
![]() |
||||||||||||