Top "Regex" questions

Regular expressions provide a declarative language to match patterns within strings.

Regular expression to limit number of characters to 10

I am trying to write a regular expression that will only allow lowercase letters and up to 10 characters. What I …

regex
Java string split with "." (dot)

Why does the second line of this code throw ArrayIndexOutOfBoundsException? String filename = "D:/some folder/001.docx"; String extensionRemoved = filename.split(".")[0]; …

java regex string split indexoutofboundsexception
Validate phone number with JavaScript

I found this code in some website, and it works perfectly. It validates that the phone number is in one …

javascript regex
Java; String replace (using regular expressions)?

As part of a project for school, I need to replace a string from the form: 5 * x^3 - 6 * x^1 + 1 to …

java regex
Regex - Does not contain certain Characters

I need a regex to match if anywhere in a sentence there is NOT either < or >. If either &…

regex regex-negation
What is the best regular expression to check if a string is a valid URL?

How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic …

regex url language-agnostic
Validating email addresses using jQuery and regex

I'm not too sure how to do this. I need to validate email addresses using regex with something like this: […

regex validation email email-validation
Using RegEx in SQL Server

I'm looking how to replace/encode text using RegEx based on RegEx settings/params below: RegEx.IgnoreCase = True RegEx.Global = …

sql-server regex sql-server-2008 tsql
How to use regex with find command?

I have some images named with generated uuid1 string. For example 81397018-b84a-11e0-9d2a-001b77dc0bed.…

regex linux find
jQuery selector regular expressions

I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector. …

javascript jquery regex jquery-selectors