Page 1 of 1

Regular Expressions

Posted: Fri Mar 20, 2009 10:54 am
by rangana
I am using following Regular expression to decode a response data.

wxString s = "[-|*|>]([[])([[:digit:]]+):([[:digit:]]+)[]]([[:print:]]+)(\r)"

In English locale it works well,

But in German Locale it fails, due to some german characters which are not in English (ä ö ü ß)

It is with the [:print:] command I guess.

I need a help on this issue

Range

Re: Regular Expressions

Posted: Fri Mar 20, 2009 12:05 pm
by computerquip
rangana wrote:I am using following Regular expression to decode a response data.

wxString s = "[-|*|>]([[])([[:digit:]]+):([[:digit:]]+)[]]([[:print:]]+)(\r)"

In English locale it works well,

But in German Locale it fails, due to some german characters which are not in English (ä ö ü ß)

It is with the [:print:] command I guess.

I need a help on this issue

Range
I'm confused. Are you trying to pass values to wxString s called digit and print? Is this C++?