regex - Find word and replace word after that in string using c# -


नमस्कार, मेरे पास इस तरह की स्ट्रिंग है:

  string values ​​= ..... Href = "http: //mynewsite.humbler.com.........href0" http: //mynewsite.anticipate.com ..... और ऐसा करने पर  
< P> मुझे "mynewsite: keyword" और फिर "कॉम" को "नेट" के साथ बदलने की आवश्यकता है। स्ट्रिंग में मौजूद कई "कॉम" मौजूद हैं, इसलिए मैं केवल मानों का उपयोग नहीं कर सका। रीप्ले विधि। इसके अलावा, कई अन्य साइट "माइस्साइट" के अलावा प्रस्तुत करता है, इसलिए मैं http के आधार पर नहीं खोज सकता ...

  (? & Lt; = http: \ / \ / mynewsite।) (\ W + \। Com)  

इसे आज़माएं। $ 1net । डेमो देखें।


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

java - @PluginTarget(Node.class) not registering as neo4j plugin -

c - The joining operator ";" in my shell isn't working properly -