Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Find RegExp's and change thier string format
QtWS25 Last Chance

Find RegExp's and change thier string format

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 558 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MarkoBorkovic
    wrote on last edited by
    #1

    Hello!
    My name is Marko.
    I'm a 14 year old programmer who recently started working with Qt.
    I took on a pretty big project that i think is going to help me learn the most.
    That project is an IDE. Im working on an IDE for php and i can't seem to figure out
    syntax highlighting. I know there is QSyntaxHighlighter class but i don't understand it. :(
    Is there a way that you could write an regular expression and then change string format of every occurrence of that RegExp in a text edit?

    Im using Qt4 if it matters.

    Thank you so much!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by t3685
      #2

      Use you Qt5 if you can and this http://doc.qt.io/qt-5/qregularexpression.html#details
      Forgot to add this: use this to replace http://doc.qt.io/qt-5/qstring.html#replace-11

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved