View Single Post
Old 11-26-2010, 12:33 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by tram View Post
re:test seems to behave differently than matches. Is there any documentation on re:test, or anything anyone can tell me that might enhance my googling abilities?

The regular espression I'm trying to use that works with matches but not with re:test follows:

Code:
/h:p[re:test(., '^[A-Z]+ [A-Z ]+$')]
What makes you think test doesn't work the same as matches? Is it possible that what you are trying to match with test isn't the same as what you are testing the match expression on? Are you trying to match across lines?
re:test()
re:test(src, pattern, flags) returns true if the string src matches the regular expression pattern.
Starson17 is offline   Reply With Quote