realbasic-nug
[Top] [All Lists]

udsbvegd : RegEx.SearchStartPosition isn't updating properly

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: udsbvegd : RegEx.SearchStartPosition isn't updating properly
From: Guyren Howe <guyren at mac dot com>
Date: Mon, 29 Jan 2007 14:59:01 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
<http://realsoftware.com/feedback/viewreport.php?reportid=udsbvegd>

In 2K7r1, the first regex match against a string updates the SearchStartPosition, but subsequent searches only ever find the first match, and SearchStartPosition isn't updated.

If you instead do

  m = r.Search(someString, r.SearchStartPosition)

everything is good.

Just trying to spare someone else the grief I've been going through finding this out.

Regards,

Guyren G Howe
Relevant Logic LLC

guyren-at-relevantlogic.com ~ http://relevantlogic.com

REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>