hallodri wrote:try this
Code: Select all
RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")
Search found 10 matches
- Sat Feb 02, 2008 8:27 pm
- Forum: Coding Questions
- Topic: Case insensitive regex?
- Replies: 2
- Views: 1055
- Sat Feb 02, 2008 8:11 pm
- Forum: Coding Questions
- Topic: Case insensitive regex?
- Replies: 2
- Views: 1055
Case insensitive regex?
I've read the http://www.pcre.org/pcre.txt but I still can't figure out how to do a case-insensitive match.
RegExp = CreateRegularExpression(#PB_Any, "snapshot_[0-9]{10}.jpg")
If RegExp
If MatchRegularExpression(RegExp, "SNAPSHOT_0438293845.jpg")
Debug "Match"
Else
Debug "No match"
EndIf ...
RegExp = CreateRegularExpression(#PB_Any, "snapshot_[0-9]{10}.jpg")
If RegExp
If MatchRegularExpression(RegExp, "SNAPSHOT_0438293845.jpg")
Debug "Match"
Else
Debug "No match"
EndIf ...
- Tue Jul 03, 2007 7:09 pm
- Forum: General Discussion
- Topic: PB order
- Replies: 7
- Views: 1601
- Tue Jul 03, 2007 6:51 pm
- Forum: General Discussion
- Topic: PB order
- Replies: 7
- Views: 1601
PB order
I was impressed with PB so I decided to buy it!
Unfortunately I haven't received an e-mail yet (it's been over 12 hours) is this unusual?
Unfortunately I haven't received an e-mail yet (it's been over 12 hours) is this unusual?
- Mon Jul 02, 2007 8:07 pm
- Forum: Coding Questions
- Topic: File write functions not returning bytes actually written
- Replies: 10
- Views: 4585
File write functions not returning bytes actually written
WriteByte
WriteCharacter
WriteData
WriteDouble
WriteFloat
WriteLong
WriteQuad
WriteString
WriteStringN
WriteWord
The return values aren't described in the docs but I assume that they indicate bytes actually written.
All the above functions indicate bytes written to a file even when they are not (e ...
WriteCharacter
WriteData
WriteDouble
WriteFloat
WriteLong
WriteQuad
WriteString
WriteStringN
WriteWord
The return values aren't described in the docs but I assume that they indicate bytes actually written.
All the above functions indicate bytes written to a file even when they are not (e ...
- Sat Jun 30, 2007 2:13 pm
- Forum: Coding Questions
- Topic: Is there error checking with file writing functions?
- Replies: 12
- Views: 2061
- Sat Jun 30, 2007 1:37 am
- Forum: Coding Questions
- Topic: Is there error checking with file writing functions?
- Replies: 12
- Views: 2061
- Sat Jun 30, 2007 12:09 am
- Forum: Coding Questions
- Topic: Is there error checking with file writing functions?
- Replies: 12
- Views: 2061
- Fri Jun 29, 2007 10:00 pm
- Forum: Coding Questions
- Topic: Is there error checking with file writing functions?
- Replies: 12
- Views: 2061
It doesn't seem to work. I set up a small test program and supposedly it wrote a 6 meg file to a floppy without complaining.netmaestro wrote:Those commands are returning 1 when successful, so a reasonable assumption would be they'd return 0 if not. But the doc doesn't say so and I don't know how you'd test it.
- Fri Jun 29, 2007 8:47 pm
- Forum: Coding Questions
- Topic: Is there error checking with file writing functions?
- Replies: 12
- Views: 2061
Is there error checking with file writing functions?
For the following functions:
WriteByte
WriteCharacter
WriteData
.
.
.
WriteStringN
WriteWord
Is there any way of checking whether the write was successful? I'm using a demo version of PureBasic.
WriteByte
WriteCharacter
WriteData
.
.
.
WriteStringN
WriteWord
Is there any way of checking whether the write was successful? I'm using a demo version of PureBasic.