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. Regular expression for network path
Forum Updated to NodeBB v4.3 + New Features

Regular expression for network path

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 719 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    Vani
    wrote on last edited by
    #1

    How to write regular expression for Network path with below condition

    . (10//,///10//) or(Example: (file://0.0.0.10/) , ///10, ///10//,…….)
    | " < > ; ? are prohibited

    RatzzR 1 Reply Last reply
    0
    • V Vani

      How to write regular expression for Network path with below condition

      . (10//,///10//) or(Example: (file://0.0.0.10/) , ///10, ///10//,…….)
      | " < > ; ? are prohibited

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Vani
      Hi,
      May be you can find something here.

      --Alles ist gut.

      1 Reply Last reply
      0
      • ValentinMicheletV Offline
        ValentinMicheletV Offline
        ValentinMichelet
        wrote on last edited by ValentinMichelet
        #3

        Have a look at the documentation: http://doc.qt.io/qt-5/qregularexpression.html
        If you use Qt5, I recommend you use QRegularExpression class instead of QRegExp class. Indeed, QRegularExpression API is clear and works better.

        See http://forum.qt.io/topic/37983/solved-problem-with-qregexp/4 and http://www.codeproject.com/Tips/729656/Reasons-to-abandon-and-replace-QRegExp-in-your-Qt.

        Are you familiar with regular expression? Otherwise you should search tutorials on the Internet. And here is a fun website to learn by playing: https://regexcrossword.com/

        If you have any further question, feel free to ask.

        1 Reply Last reply
        0

        • Login

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