Menu

#20 Text Editor Fumbles "(?:"

open
nobody
Interface (13)
5
2004-10-21
2004-10-21
Anonymous
No

Trying to create non-capturing parentheses can result in
a headache.

Try typing "(?:" minus the quotes in the editor window.
Once you type the colon, the question mark disappears,
never to be found again.

If you really want to have some fun. Try typing "(?:?:"
minus the quotes. Hold on to your chair!

Discussion

  • Nobody/Anonymous

    Logged In: NO

    yep, the ":" character causes A.I. havoc !
    I was using [:] to detect a single colon character, with
    little success.
    It works for a while, but when reloading, or saving the
    regex, the application reacts unpredictably.
    I loaded a regex (.express) with "[:]" in it and almost all
    of my regex dissappeared. Then pressing Ctrl+Z, I regained
    the lost regex text!

    It is very weird, obviously something is parsing the regex
    and editing it as it goes along, except the colon (:) is
    disrupting it's A.I. flow and workings.

     
  • Nobody/Anonymous

    Logged In: NO

    May be related to not handling the escaped '(' character : \(

    ---
    DLT at earthlink dot net

     

Log in to post a comment.