1334 links
  • linx
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Play Videos
Links per page: 20 50 100
page 1 / 1
11 results tagged regex x
  • thumbnail
    regex - How to split a long regular expression into multiple lines in JavaScript? - Stack Overflow
    November 26, 2021 at 3:39:27 PM UTC - permalink -
    QRCode
    - https://stackoverflow.com/a/34755045/954777
    javascript multiline regex
  • thumbnail
    GitHub - validatorjs/validator.js: String validation
    November 25, 2021 at 4:41:18 PM UTC - permalink -
    QRCode
    - https://github.com/validatorjs/validator.js
    javascript regex sanitization validator
  • thumbnail
    perl - How do I assign the result of a regex match to a new variable, in a single line? - Stack Overflow
    August 13, 2021 at 10:35:29 AM UTC - permalink -
    QRCode
    - https://stackoverflow.com/questions/6278143/how-do-i-assign-the-result-of-a-regex-match-to-a-new-variable-in-a-single-line
    assign list match perl regex variable
  • thumbnail
    fdfind: A simple, fast and user-friendly alternative to 'find'

    fd is a simple, fast and user-friendly alternative to
    find.

    While it does not seek to mirror all of find's powerful functionality, it provides sensible
    (opinionated) defaults for 80% of the use cases.

    Features

    • Convenient syntax: fd PATTERN instead of find -iname '*PATTERN*'.
    • Colorized terminal output (similar to ls).
    • It's fast (see benchmarks below).
    • Smart case: the search is case-insensitive by default. It switches to
      case-sensitive if the pattern contains an uppercase
      character*.
    • Ignores hidden directories and files, by default.
    • Ignores patterns from your .gitignore, by default.
    • Regular expressions.
    • Unicode-awareness.
    • The command name is 50% shorter* than
      find :-).
    • Parallel command execution with a syntax similar to GNU Parallel.
    September 21, 2020 at 12:52:42 PM UTC * - permalink -
    QRCode
    - http://github.com/sharkdp/fd
    cli filesystem regex rust search terminal tool
  • Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript
    September 18, 2020 at 12:26:32 PM UTC - permalink -
    QRCode
    - https://regex101.com/
    PCRE perl regex
  • Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.
    July 6, 2020 at 4:59:13 PM UTC - permalink -
    QRCode
    - https://debuggex.com/
    debug pcre perl regex
  • thumbnail
    node.js - express.js - single routing handler for multiple routes in a single line - Stack Overflow
    app.get('/:var(bla|blabla)?', todo)

    :var sets the req.param that you don't use. it's only used in this case to set the regex.

    (bla|blabla) sets the regex to match, so it matches the strings bla and blablah.

    ? makes the entire regex optional, so it matches / as well.

    February 6, 2018 at 3:38:09 PM UTC - permalink -
    QRCode
    - https://stackoverflow.com/a/15350845/954777
    express multiple-routes node.js regex routing
  • thumbnail
    reactjs - Match multiple path with react router v4 - Stack Overflow
    <Route path="/:path(path1|path2)" component={MyComp} />
    January 24, 2018 at 10:44:33 AM UTC - permalink -
    QRCode
    - https://stackoverflow.com/a/43544675/954777
    match path react react-router regex
  • thumbnail
    shell script - Using 'sed' to find and replace - Unix & Linux Stack Exchange

    sed is stream editor, but can edit files directly too, with the following:

    sed -i -e 's/foo/bar/g' filename

    s is used to replace the found expression "foo" with "bar"

    g stands for "global", meaning to do this for the whole line. If you leave off the g and "foo" appears twice on the same line, only the first "foo" is changed to "bar".

    -i option is used to edit in place on filename.

    -e option indicates a command to run.

    September 14, 2016 at 10:09:37 AM UTC - permalink -
    QRCode
    - http://unix.stackexchange.com/questions/159367/using-sed-to-find-and-replace#159369
    file find-replace regex sed
  • draft-seantek-mail-regexen-00

    3.1.2. Complete Expression for Deliverable Email Address

    The following regular expression is a deliverable email address:

    ; Mailbox from RFC 5321, as amended

    P E J DEA     = ([A-Za-z0-9!#-'*+\-/=?^_`{-~\xA0-\x{10FFFF}]+
    (?:\.[A-Za-z0-9!#-'*+\-/=?^_`{-~\xA0-\x{10FFFF}])|
    "(?:[ !#-\[\]-~\xA0-\x{10FFFF}]|\\[ -~])*")@
    ((?:[A-Za-z0-9](?:[A-Za-z0-9\-]*[A-Za-z0-9])?|
    [\x00-\x{10FFFF}]*[\x80-\x{10FFFF}]+[\x00-\x{10FFFF}]*)
    (?:\.(?:[A-Za-z0-9](?:[A-Za-z0-9\-]*
    [A-Za-z0-9])?|[\x00-\x{10FFFF}]*
    [\x80-\x{10FFFF}]+[\x00-\x{10FFFF}]*))*)

    In the regular expression DEA, capturing group 1 is the local-part
    production, and capturing group 2 is the domain production.

    April 13, 2016 at 1:39:26 PM UTC - permalink -
    QRCode
    - https://datatracker.ietf.org/doc/draft-seantek-mail-regexen/?include_text=1
    email ietf perl regex rfc
  • Replacing returns with a comma with tr

    It's an interesting dilemma. There are two obstacles to doing this in sed. One is that sed operates line by line and never sees the newline endings. Second, sed's regular expressions don't provide a way to exactly match a newline character.

    If you really want to do this, don't use sed; use tr.
    cat file | tr '\n' ','

    January 5, 2016 at 10:31:43 AM UTC - permalink -
    QRCode
    - http://funarg.nfshost.com/r2/notes/sed-return-comma.html
    newline regex replace sed
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation