Regular Expressions

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
rangana
Experienced Solver
Experienced Solver
Posts: 53
Joined: Fri Apr 11, 2008 5:48 am
Location: Sri lanka

Regular Expressions

Post by rangana » Fri Mar 20, 2009 10:54 am

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
Range

computerquip
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Feb 20, 2009 7:13 pm
Location: $(#wx)\src

Re: Regular Expressions

Post by computerquip » Fri Mar 20, 2009 12:05 pm

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++?

Post Reply