Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Regular expression to match a string in C#

Regular expression to match a string in C#

Scheduled Pinned Locked Moved C#
regexcsharpdatabasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suman Singh
    wrote on last edited by
    #1

    Hi all, I want to match a string let say {begin} {=LinkName=}  {end} from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database... Can you please help me to find the exact regular expression syntax.. Thanks in advance for your help... Suman Singh

    E 1 Reply Last reply
    0
    • S Suman Singh

      Hi all, I want to match a string let say {begin} {=LinkName=}  {end} from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database... Can you please help me to find the exact regular expression syntax.. Thanks in advance for your help... Suman Singh

      E Offline
      E Offline
      eggsovereasy
      wrote on last edited by
      #2

      Are you trying to parse your own markup to make dynamic links? Just use the asp hyperlink if that is the case. otherwise, read in the text line by line and do: myString.Replace("{=NavLink=}", "What you want here");

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups