artemanufrij / regextester

An elementary OS app
https://artemanufrij.github.io
38 stars 10 forks source link

Match group information #4

Closed Limeth closed 7 years ago

Limeth commented 7 years ago

It would be great if the application also displayed which regex groups matched what parts of the test string.

artemanufrij commented 7 years ago

@Limeth have you an application / website witch does it?

Limeth commented 7 years ago

For example, Regex101 has such a feature implemented: https://regex101.com/r/XSDPTm/1

artemanufrij commented 7 years ago

@Limeth now I have to fix colors. I guess I can finish it tomorrow.

bildschirmfoto von 2017-09-12 22 08 47

artemanufrij commented 7 years ago

@Limeth [Fixed colors] could you test current master branch please?

Limeth commented 7 years ago

Sure. How can I build it?

artemanufrij commented 7 years ago

@Limeth here is a documentation: https://github.com/artemanufrij/regextester/blob/master/README.md#hot-to-build-from-github

Limeth commented 7 years ago

I am getting an error when trying to build it using the instructions:

$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Error at CMakeLists.txt:32 (include):
  include could not find load file:

    ValaPrecompile

CMake Error at CMakeLists.txt:33 (find_package):
  By not providing "FindVala.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Vala", but
  CMake did not find one.

  Could not find a package configuration file provided by "Vala" with any of
  the following names:

    ValaConfig.cmake
    vala-config.cmake

  Add the installation prefix of "Vala" to CMAKE_PREFIX_PATH or set
  "Vala_DIR" to a directory containing one of the above files.  If "Vala"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!
See also "/home/limeth/workspace/vala/regextester/build/CMakeFiles/CMakeOutput.log".
artemanufrij commented 7 years ago

@Limeth install elementary sdk and try it again please:

sudo apt install elementary-sdk

Limeth commented 7 years ago

It looks like it's working as intended! Thank you for adding this feature. :tada:

artemanufrij commented 7 years ago

@Limeth thank you for testing.