Click here to Skip to main content
15,902,189 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to get address of a function or method Pin
treddie1-Jul-13 12:18
treddie1-Jul-13 12:18 
GeneralRe: How to get address of a function or method Pin
treddie1-Jul-13 20:30
treddie1-Jul-13 20:30 
AnswerRe: How to get address of a function or method Pin
Richard Deeming1-Jul-13 1:54
mveRichard Deeming1-Jul-13 1:54 
GeneralRe: How to get address of a function or method Pin
treddie1-Jul-13 12:20
treddie1-Jul-13 12:20 
GeneralRe: How to get address of a function or method Pin
treddie1-Jul-13 19:29
treddie1-Jul-13 19:29 
GeneralRe: How to get address of a function or method Pin
Richard Deeming2-Jul-13 1:25
mveRichard Deeming2-Jul-13 1:25 
GeneralRe: How to get address of a function or method Pin
treddie2-Jul-13 9:41
treddie2-Jul-13 9:41 
QuestionHow to express this in a Regex? Pin
Sonhospa28-Jun-13 0:50
Sonhospa28-Jun-13 0:50 
Hi all,

I hope someone of the more experienced members watches this forum - it doesn't seem to be very frequented, but I urgently need a solution very soon. Let me also mention that I am a fairly unexperienced leisuretime programmer, and that scanning the internet and playing around with Expresso for days didn't help - so I set my hopes upon you now... Sniff | Sniff | :^) .

In my application I have to parse different file formats for regular expressions. The match patterns are divided by diffferent patterns of control characters, depending on the file format. A sample would be:
1
01:00:01:10
01:00:05:22
After the conquest and plundering
of the Inca empire by Spain

2
01:00:05:25
01:00:09:09
the Indians invented the
legend of El Dorado

3
01:00:09:12
01:00:13:24
a land of gold, located in the
swamps of the Amazon headwaters.
I get fairly proper matches with this regex:
(?<Nummer>\d+)\r\n(?<TCStart>\d{2}:\d{2}:\d{2}:\d{2})\r\n(<TCEnd>\d{2}:\d{2}:\d{2}:\d{2})\r\n(?<Text>[a-zA-Z;1-9;\s;\p{P};\p{L}\p{M}]*)\r\n\r\n
The problem is: If there's a '0' (zero) in the text - like e.g. in years ("this happened a.d. 1570") - the whole pattern won't match!? Confused | :confused: On the other hand, if I change "1-9" into the common "0-9" pattern, then I have only one matching result, which contains all the other supposed matches in its "Text" group.

I hope I expressed the problem in an understandable way... and I'll highly appreciate if someone could guide me to a better solution!

Thanks in advance
Mick
AnswerRe: How to express this in a Regex? Pin
thanh_bkhn28-Jun-13 2:50
professionalthanh_bkhn28-Jun-13 2:50 
News[RESOLVED] Re: How to express this in a Regex? Pin
Sonhospa28-Jun-13 2:59
Sonhospa28-Jun-13 2:59 
QuestionMS at it again Pin
treddie26-Jun-13 19:57
treddie26-Jun-13 19:57 
AnswerRe: MS at it again Pin
Eddy Vluggen27-Jun-13 0:23
professionalEddy Vluggen27-Jun-13 0:23 
GeneralRe: MS at it again Pin
treddie28-Jun-13 11:20
treddie28-Jun-13 11:20 
GeneralRe: MS at it again Pin
Eddy Vluggen3-Jul-13 6:56
professionalEddy Vluggen3-Jul-13 6:56 
AnswerRe: MS at it again Pin
Dave Kreskowiak27-Jun-13 1:52
mveDave Kreskowiak27-Jun-13 1:52 
GeneralRe: MS at it again Pin
treddie28-Jun-13 11:21
treddie28-Jun-13 11:21 
QuestionSize of a Structure Pin
Smith00526-Jun-13 18:51
Smith00526-Jun-13 18:51 
AnswerRe: Size of a Structure Pin
Mycroft Holmes26-Jun-13 19:18
professionalMycroft Holmes26-Jun-13 19:18 
GeneralRe: Size of a Structure Pin
Smith00526-Jun-13 19:47
Smith00526-Jun-13 19:47 
GeneralRe: Size of a Structure Pin
Richard Deeming27-Jun-13 3:09
mveRichard Deeming27-Jun-13 3:09 
AnswerRe: Size of a Structure Pin
Dave Kreskowiak27-Jun-13 1:45
mveDave Kreskowiak27-Jun-13 1:45 
QuestionCannot Drag and drop reportviewer control in visual studio 2010 Pin
waner michaud26-Jun-13 9:25
waner michaud26-Jun-13 9:25 
QuestionRe: Cannot Drag and drop reportviewer control in visual studio 2010 Pin
TnTinMn26-Jun-13 15:44
TnTinMn26-Jun-13 15:44 
AnswerRe: Cannot Drag and drop reportviewer control in visual studio 2010 Pin
waner michaud27-Jun-13 5:06
waner michaud27-Jun-13 5:06 
GeneralRe: Cannot Drag and drop reportviewer control in visual studio 2010 Pin
TnTinMn27-Jun-13 10:33
TnTinMn27-Jun-13 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.