Hello,
I use a regex tested here and there to filter my graph on a quite huge attribute. It works fine on these websites but not on Gephi (nothing is selected when I click on "select").
I chose Filters>Attributes>Equal>My_attribute>, then entered my regex, clicked OK, then SELECT.
Is there a special syntax? Here is my regex: [0-9a-zA-Z. \(\)]+[P|p]hylogen[0-9a-zA-Z. \(\)]+
Thanks,
W.
problem with regex
-
- Posts:11
- Joined:03 May 2011 15:02 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: problem with regex
Ok, seems that the websites I used where not that trustable...
Everything works fine in Gephi too when I use
([0-9a-zA-Z.'\[\]\?\-&;:\ \(\)]+)?(?i)phylogen([0-9a-zA-Z.'\[\]\?\-&;:\ \(\)]+)?
I keep my post online in case it could help someone.
Everything works fine in Gephi too when I use
([0-9a-zA-Z.'\[\]\?\-&;:\ \(\)]+)?(?i)phylogen([0-9a-zA-Z.'\[\]\?\-&;:\ \(\)]+)?
I keep my post online in case it could help someone.
-
- Posts:1
- Joined:25 Jun 2011 01:09 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: problem with regex
It would be really great if this syntax could be rendered easier. Right now, filtering for strings really isn't trivial, but it's often required.
I think something like
*query* should do the far too complex regex.
I think something like
*query* should do the far too complex regex.
Re: problem with regex
There should be an SQL-equivalent LIKE query to find occurrences of a string.