octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 in


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input
Date: Mon, 19 Jun 2023 13:02:17 -0400 (EDT)

Follow-up Comment #45, bug #57107 (project octave):

Another possible workaround for your use case:

search_buffer = buffer;
search_buffer(buffer>127) = 0;
regexpi(search_buffer,'^\s*(http|https|ftp|file)://')


Use `search_buffer` as the input string for the regexp* functions. But use the
result to index into `buffer`.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57107>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]