Quote:
Originally Posted by tram
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.