Bible verse, biblical string in text

Published on Tue Mar 01 2022

Matches biblical strings in text. Two capture groups are used - one for the books name and another for the passages of the same book. * RegEx is long because it is strict!!! * If you want to also match books names without specified chapter and verses use: /((?:[1234]\s?)?[a-zа-я]+)(\s?\d+(?::(?:\d+[—–-]\d+|\d+)(?:,\d+[—–-]\d+|,\d+)*(?:;\s?\d+(?::(?:\d+[—–-]\d+|\d+)(?:,\d+[—–-]\d+|,\d+)*|;))*)?)?/ig

Additional matching regexes for
Bible verse, biblical string in text

Bible verse, biblical string in text

Matches biblical strings in text. Two capture groups are used - one for the books name and another for the passages of the same book. * RegEx is long because it is strict!!! * If you want to also match books names without specified chapter and verses use: /((?:[1234]\s?)?[a-zа-я]+)(\s?\d+(?::(?:\d+[—–-]\d+|\d+)(?:,\d+[—–-]\d+|,\d+)*(?:;\s?\d+(?::(?:\d+[—–-]\d+|\d+)(?:,\d+[—–-]\d+|,\d+)*|;))*)?)?/ig

match arguments similar to shell, supports quoted string

first group matches quoted strings second group plain text, arguments are separated with a space. example: "this is a \"string\"" thisisnot "another \"string\" with a backslash \"\\"" just replace \" with " after matching.

Match quoted strings, ignoring escaped quotes

Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.

Version Matcher

Matches version strings.

Get Nth value (3 times)

capture Nth character from string, 3 times

SFTP or FTP url

Parse an SFTP or FTP url and brak it into named capture groups.

grub options matching

Trying to match grub options in capture groups, some of which are known

Youtube video URL or empty

Matches correct youtube video urls and empty strings.

Javascript: howto get rid of resulting ""

Hey folks, I try to do smth like this: var s = 'this is a "" && "string constant" and this "is another" one', result = s.match(new RegExp('"{1}(.*?)"{1}', 'g')); console.log(result); what it gives me back is ["""", ""string constant"", ""is another""]. How can I get smth just like ["", "string constant", "is another"]? Many thanks for any advice

MySQL PHP connection string

Capture dbname and host from MySQL PHP connection string