home.social

#regularexpression — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #regularexpression, aggregated by home.social.

  1. RE#: how we built the world's fastest regex engine in F#, iev.ee/blog/resharp-how-we-bui.

    Excellent blog post!
    Very interesting approach with new operations: intersection (&) and complement (~).

    Implementation: github.com/ieviev/resharp-dotn
    Research paper: dl.acm.org/doi/abs/10.1145/370 (POP25)

    #RegularExpression #regex

  2. 𝗥𝗲𝗴𝗲𝘅 𝗟𝗲𝗮𝗿𝗻:

    #Regex #RegularExpression #Regex #Learn

    thewhale.cc/posts/regex-learn

    Learn Regex step by step, from zero to advanced. Learning Regex is easier than you think. You can use this tool to easily learn, practice, test and share Regex.

  3. My tip of the of the day.

    To match a literal dot "." with a regular expression, write

    "[.]"

    instead of

    "\\." or "\\\\." or even "\\\\\\\\.",

    depending on context. 😀

    #regex #regexp #regularexpression #programming #stringmatching

  4. My tip of the of the day.

    To match a literal dot "." with a regular expression, write

    "[.]"

    instead of

    "\\." or "\\\\." or even "\\\\\\\\.",

    depending on context. 😀

    #regex #regexp #regularexpression #programming #stringmatching

  5. My tip of the of the day.

    To match a literal dot "." with a regular expression, write

    "[.]"

    instead of

    "\\." or "\\\\." or even "\\\\\\\\.",

    depending on context. 😀

    #regex #regexp #regularexpression #programming #stringmatching

  6. My tip of the of the day.

    To match a literal dot "." with a regular expression, write

    "[.]"

    instead of

    "\\." or "\\\\." or even "\\\\\\\\.",

    depending on context. 😀

    #regex #regexp #regularexpression #programming #stringmatching

  7. My tip of the of the day.

    To match a literal dot "." with a regular expression, write

    "[.]"

    instead of

    "\\." or "\\\\." or even "\\\\\\\\.",

    depending on context. 😀

    #regex #regexp #regularexpression #programming #stringmatching

  8. How do I use regular expressions to mute specific terms without muting them if they're just part of a word?
    So like, in a stupid example:
    I want to block "lol" but not "testloltest"
    #regularexpressions #regularexpression #sharkey #misskey #wordmute

  9. My PhD student was still feeling uncomfortable with , so I searched and found these awesome regex games that can help you improve your regex-fu and help you have some fun during your daily commute:

    regexcrossword.com

    the-regex-game.com/?level=inte

    and this imho is more geared towards beginners:

    regexone.com

  10. At some point there had to be a competition for who can create the most fked up syntax for regular expressions. And I feel like #vim was probably in the top three. Non-greedy being \{-} is WILD.
    (Yes, I'm aware of the history, it's a joke. But also apparently nobody ever thought about standardizing it for developer's sanity)
    #regex #regularexpression

  11. Things I Learned Today
    #TILT #bash #linux
    Still working on #regularExpression in bash.

    re='^~\s~\s~'
    if [[ "${lineN}" =~ ${re} ]] ; then bla bla bla...

    The extra variable declaration is needed; found on web
    "While not always necessary, it is advisable to store the regex in a variable first, because Bash has trouble with regex literals containing \."

  12. Things I Learned Today
    #TILT #bash #linux

    It took me while to figure this out and now I remember that I fell in this hole before.

    When using #regularExpression like:

    if [[ ! ${suffix} =~ .*voScript.txt$ ]] ; then echo "something" ;fi

    do NOT quote the regular expression. It is not a string.

  13. Best answer on regexps ever? 🧐 😎

    - What is the plural form of regex?

    - If you've used more than one of them, you'll know that the plural of "regex" is "regrets." – cjs (Mar 14, 2022 at 23:46)

    #regex #regexps #programmer #programming #devops #regularexpression

  14. Boah ich bin echt zu dumm, um #regex zu verstehen. Kann mir jemand nen #Tipp geben, wie ich zwei eckige Klammern "[ ]" inklusive allen Zeichen zwischen diesen auswählen kann?

    #RegularExpression

  15. @tripleo You’re thinking of #Perl’s “taint mode” (stop your teenage giggling), where outside data is untrusted unless it’s the extracted subpattern match in a #RegularExpression.

    It’s only enabled under certain conditions. Read about it in the `perlsec` manual page: perldoc.perl.org/perlsec#Taint

    #programming #security #InfoSec #CyberSecurity #RegEx #RegExp

  16. Just so we're clear: I include #Matrix direct messaging link in format of matrix.to/#/@vintprox:envs.net 👌...which #YouTube has no trouble with. The reason I even publish DM link instead of my #MatrixSpace, though, is because YouTube has a meltdown from links containing a second # (number sign, replace @ with it to get into my space).

    From technical POV, it's one correct #RegularExpression away for YouTube, as many modern social media and video platforms can handle it and do use normal #regex. But, on the other hand, #MatrixTo service just shouldn't be employing such flawed #URL pattern or provide an alternative one, even if #URI standard allows the former to exist.

    So, yeah, there is that - it is hard to gather video viewers in such a place. It's a single thing that I miss from Discord invite links. Matrix ones don't need a vanity and it's sweet - one solution is put it through #URLShortner, but then the entire point is lost.

  17. Just so we're clear: I include #Matrix direct messaging link in format of matrix.to/#/@vintprox:envs.net 👌...which #YouTube has no trouble with. The reason I even publish DM link instead of my #MatrixSpace, though, is because YouTube has a meltdown from links containing a second # (number sign, replace @ with it to get into my space).

    From technical POV, it's one correct #RegularExpression away for YouTube, as many modern social media and video platforms can handle it and do use normal #regex. But, on the other hand, #MatrixTo service just shouldn't be employing such flawed #URL pattern or provide an alternative one, even if #URI standard allows the former to exist.

    So, yeah, there is that - it is hard to gather video viewers in such a place. It's a single thing that I miss from Discord invite links. Matrix ones don't need a vanity and it's sweet - one solution is put it through #URLShortner, but then the entire point is lost.

  18. Just so we're clear: I include #Matrix direct messaging link in format of matrix.to/#/@vintprox:envs.net 👌...which #YouTube has no trouble with. The reason I even publish DM link instead of my #MatrixSpace, though, is because YouTube has a meltdown from links containing a second # (number sign, replace @ with it to get into my space).

    From technical POV, it's one correct #RegularExpression away for YouTube, as many modern social media and video platforms can handle it and do use normal #regex. But, on the other hand, #MatrixTo service just shouldn't be employing such flawed #URL pattern or provide an alternative one, even if #URI standard allows the former to exist.

    So, yeah, there is that - it is hard to gather video viewers in such a place. It's a single thing that I miss from Discord invite links. Matrix ones don't need a vanity and it's sweet - one solution is put it through #URLShortner, but then the entire point is lost.

  19. Just so we're clear: I include #Matrix direct messaging link in format of matrix.to/#/@vintprox:envs.net 👌...which #YouTube has no trouble with. The reason I even publish DM link instead of my #MatrixSpace, though, is because YouTube has a meltdown from links containing a second # (number sign, replace @ with it to get into my space).

    From technical POV, it's one correct #RegularExpression away for YouTube, as many modern social media and video platforms can handle it and do use normal #regex. But, on the other hand, #MatrixTo service just shouldn't be employing such flawed #URL pattern or provide an alternative one, even if #URI standard allows the former to exist.

    So, yeah, there is that - it is hard to gather video viewers in such a place. It's a single thing that I miss from Discord invite links. Matrix ones don't need a vanity and it's sweet - one solution is put it through #URLShortner, but then the entire point is lost.

  20. Just so we're clear: I include direct messaging link in format of matrix.to/#/@vintprox:envs.net 👌...which has no trouble with. The reason I even publish DM link instead of my , though, is because YouTube has a meltdown from links containing a second # (number sign, replace @ with it to get into my space).

    From technical POV, it's one correct away for YouTube, as many modern social media and video platforms can handle it and do use normal . But, on the other hand, service just shouldn't be employing such flawed pattern or provide an alternative one, even if standard allows the former to exist.

    So, yeah, there is that - it is hard to gather video viewers in such a place. It's a single thing that I miss from Discord invite links. Matrix ones don't need a vanity and it's sweet - one solution is put it through , but then the entire point is lost.