Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
code don't work...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
any  
View profile  
 More options Jul 2, 9:22 am
From: any <anyn...@gmail.com>
Date: Thu, 2 Jul 2009 06:22:09 -0700 (PDT)
Local: Thurs, Jul 2 2009 9:22 am
Subject: code don't work...
hi all. i write next code:

inputText as string = File.ReadAllText(inputFileDialog.FileName)
re as Regex = Regex("\'([0-9]{16})\', \'(.*?)\', \'(.*?)\'")
mc as MatchCollection = re.Matches(inputText)
for mt as Match in mc:
    print mt.ToString()

and this code don't work :( i see error: unexpected char: '''.
(BCE0044)

thanks.

ps. sorry for my english :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Jul 2, 10:49 am
From: Cedric Vivier <cedr...@neonux.com>
Date: Thu, 2 Jul 2009 22:49:15 +0800
Local: Thurs, Jul 2 2009 10:49 am
Subject: Re: code don't work...

Hi,

On Thu, Jul 2, 2009 at 9:22 PM, any <anyn...@gmail.com> wrote:
> re as Regex = Regex("\'([0-9]{16})\', \'(.*?)\', \'(.*?)\'")

> and this code don't work :( i see error: unexpected char: '''.(BCE0044)

You must not escape the single-quotes since this is a double-quoted string.

re = regex("'([0-9]{16})', '(.*?)', '(.*?)'")

works.

Cheers,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
any  
View profile  
 More options Jul 2, 10:56 am
From: any <anyn...@gmail.com>
Date: Thu, 2 Jul 2009 07:56:36 -0700 (PDT)
Local: Thurs, Jul 2 2009 10:56 am
Subject: Re: code don't work...
mmm... very strange. in this code 5 errors... i write in sharpdevelop.
here is the full code:

namespace CCParser

import System
import System.IO
import System.Collections
import System.Drawing
import System.Windows.Forms
import System.Text.RegularExpressions

partial class MainForm:
    def constructor():
        // The InitializeComponent() call is required for Windows
Forms designer support.
        InitializeComponent()

    private def BtnBrowseClick(sender as object, e as
System.EventArgs):
        if inputFileDialog.ShowDialog() == DialogResult.OK:
            txtPath.Text = inputFileDialog.FileName

    private def BtnConvertClick(sender as object, e as
System.EventArgs):
        inputText as string = File.ReadAllText
(inputFileDialog.FileName)
        re as Regex = regex("'([0-9]{16})', '(.*?)', '(.*?)'")
        mc as MatchCollection = re.Matches(inputText)
        for mt as Match in mc:
            print mt.ToString()

[STAThread]
def Main(argv as (string)):
    Application.EnableVisualStyles()
    Application.SetCompatibleTextRenderingDefault(false)
    Application.Run(MainForm())

On 2 июл, 18:49, Cedric Vivier <cedr...@neonux.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
any  
View profile  
 More options Jul 3, 4:29 am
From: any <anyn...@gmail.com>
Date: Fri, 3 Jul 2009 01:29:30 -0700 (PDT)
Local: Fri, Jul 3 2009 4:29 am
Subject: Re: code don't work...
no ideas? :(

On 2 июл, 18:56, any <anyn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Chase  
View profile  
 More options Jul 6, 11:34 am
From: Justin Chase <justin.m.ch...@gmail.com>
Date: Mon, 6 Jul 2009 10:34:44 -0500
Local: Mon, Jul 6 2009 11:34 am
Subject: Re: code don't work...

What are your errors? I just compiled it and it seemed to work.

--
Justin Chase
http://www.justnbusiness.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google