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. Web Development
  3. ASP.NET
  4. Regex

Regex

Scheduled Pinned Locked Moved ASP.NET
regexhelpquestion
5 Posts 3 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.
  • A Offline
    A Offline
    AnhTin
    wrote on last edited by
    #1

    hi all How can i use Regex character to A-Z, a-z 0-9 If my string is utf-8 is error ex "â bo" will is error

    S N 2 Replies Last reply
    0
    • A AnhTin

      hi all How can i use Regex character to A-Z, a-z 0-9 If my string is utf-8 is error ex "â bo" will is error

      S Offline
      S Offline
      Sonia Gupta
      wrote on last edited by
      #2

      if ur string is utf-8 then expression should be [a-zA-Z]*-[0-9]*

      Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

      N 1 Reply Last reply
      0
      • A AnhTin

        hi all How can i use Regex character to A-Z, a-z 0-9 If my string is utf-8 is error ex "â bo" will is error

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        AnhTin wrote:

        How can i use Regex character to A-Z, a-z 0-9

        What is regex character ? Do you want to match A-Z, a-z 0-9 ? then use

        [\w]*

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        A 1 Reply Last reply
        0
        • S Sonia Gupta

          if ur string is utf-8 then expression should be [a-zA-Z]*-[0-9]*

          Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Sonia Gupta wrote:

          if ur string is utf-8 then expression should be [a-zA-Z]*-[0-9]*

          why -?

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          1 Reply Last reply
          0
          • N N a v a n e e t h

            AnhTin wrote:

            How can i use Regex character to A-Z, a-z 0-9

            What is regex character ? Do you want to match A-Z, a-z 0-9 ? then use

            [\w]*

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

            A Offline
            A Offline
            AnhTin
            wrote on last edited by
            #5

            Thanks reply But if my character is "â" or "â". that all is nvarchar but i want my string only varchar

            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