Tag: regex

3711 Regular expression to match a line that doesn't contain a word? 2009-01-02T07:30:16.097

3460 How to validate an email address in JavaScript? 2008-09-05T16:10:11.093

3397 How to replace all occurrences of a string in JavaScript 2009-07-17T17:53:46.750

2997 How to validate an email address using a regular expression? 2008-10-14T14:14:34.980

1417 What is a non-capturing group? What does (?:) do? 2010-08-18T13:17:47.447

1324 RegEx match open tags except XHTML self-contained tags 2009-11-13T22:38:26.177

1160 \d is less efficient than [0-9] 2013-05-18T07:18:40.740

1085 How do you access the matched groups in a JavaScript regular expression? 2009-01-11T07:21:20.460

1037 How do you use a variable in a regular expression? 2009-01-30T00:11:05.160

847 A comprehensive regex for phone number validation 2008-09-23T20:13:42.937

672 What is the best regular expression to check if a string is a valid URL? 2008-10-02T10:53:17.550

638 Is there a regular expression to detect a valid regular expression? 2008-10-05T17:07:35.227

558 Regular Expressions: Is there an AND operator? 2009-01-22T16:49:14.057

535 Match all occurrences of a regex 2008-09-17T05:46:26.047

528 jQuery selector regular expressions 2008-10-10T05:40:48.353

519 Find and kill a process in one line using bash and regex 2010-08-18T09:33:41.783

510 Check whether a string matches a regex in JS 2011-07-06T21:08:50.767

507 How do I remove all non alphanumeric characters from a string except dash? 2010-07-09T06:45:32.460

490 How to negate specific word in regex? 2009-08-06T17:20:45.510

470 Regular Expression for alphanumeric and underscores 2008-12-03T04:25:27.113

466 How to count string occurrence in string? 2010-10-24T18:39:15.003

447 How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops 2014-03-20T19:09:13.197

441 How to do a regular expression replace in MySQL? 2009-06-12T14:08:42.923

433 How can I make my match non greedy in vim? 2009-08-20T12:28:17.717

410 How to replace plain URLs with links? 2008-09-01T09:58:49.647

392 Regular expression to stop at first match 2010-03-23T20:36:35.240

390 Regular expression search replace in Sublime Text 2 2012-08-05T20:38:28.040

388 Escape string for use in Javascript regex 2010-08-10T05:01:32.243

382 How do I split a string with multiple separators in javascript? 2009-03-16T11:25:52.623

381 Can you provide some examples of why it is hard to parse XML and HTML with a regex? 2009-03-31T14:13:39.727

373 What is the difference between re.search and re.match? 2008-10-08T00:51:36.257

371 What do 'lazy' and 'greedy' mean in the context of regular expressions? 2010-02-20T06:17:34.707

370 How do I replace multiple spaces with a single space in C#? 2008-10-15T22:10:31.993

362 How can I exclude one word with grep? 2010-12-27T11:09:06.197

359 Regular expression to search for Gadaffi 2011-03-19T22:14:17.363

353 Is it worth using Python's re.compile? 2009-01-16T21:31:57.617

351 How to match "anything up until this sequence of characters" in a regular expression? 2011-08-19T16:45:44.500

350 Non greedy (reluctant) regex matching in sed? 2009-07-09T10:47:31.083

347 Regex to replace multiple spaces with a single space 2009-12-30T17:28:58.513

342 Regular expression to match DNS hostname or IP Address? 2008-09-19T22:38:01.703

336 Split Java String by New Line 2009-01-18T10:13:56.487

335 Split string on whitespace in Python 2011-11-13T18:46:11.853

331 Is there a RegExp.escape function in Javascript? 2010-08-24T22:22:33.493

326 What special characters must be escaped in regular expressions? 2008-12-29T23:32:04.567

320 Removing empty lines in Notepad++ 2010-10-05T17:11:35.220

316 Regex lookahead, lookbehind and atomic groups 2010-06-04T10:56:13.783

309 Regex Match all characters between two strings 2011-05-24T11:45:58.417

306 How do I grep for all non-ASCII characters? 2010-06-08T20:48:13.650

304 How to remove all line breaks from a string? 2012-05-29T19:05:35.013

303 Greedy vs. Reluctant vs. Possessive Quantifiers 2011-03-16T00:55:41.960

297 Find CRLF in Notepad++ 2008-09-25T15:24:27.157

297 Python: Extract numbers from a string 2010-11-27T00:00:40.523

297 How to extract a substring using regex 2011-01-11T20:22:49.463

295 How to escape text for regular expression in Java 2008-09-12T23:36:36.687

294 Regex: Remove lines containing 2011-05-03T22:06:46.200

289 How to remove non-alphanumeric characters? 2009-03-18T16:29:19.140

283 Regular expression to extract text between square brackets 2010-03-08T17:11:33.893

277 Regex to match only letters 2010-09-01T12:07:55.857

276 Converting user input string to regular expression 2009-05-17T14:20:18.000

276 Java string split with "." (dot) 2013-02-12T12:51:35.277

269 Python string.replace regular expression 2013-05-23T17:44:27.103

257 Regex for password must contain at least eight characters, at least one number and both lower and uppercase letters and special characters 2013-10-26T09:42:10.750

254 Simple way to remove multiple spaces in a string? 2009-10-09T21:48:37.197

253 Find all occurrences of a substring in Python 2011-01-12T02:35:18.120

248 Regex for numbers only 2008-11-07T18:42:49.553

248 Regex: matching up to the first occurrence of a character 2010-01-06T13:18:46.133

246 What is a good regular expression to match a URL? 2010-09-28T03:07:26.007

245 What regex will match every character except comma ',' or semi-colon ';'? 2009-09-11T05:39:45.107

242 How do I match any character across multiple lines in a regular expression? 2008-10-01T18:48:22.160

240 How can I write a regex which matches non greedy? 2012-08-10T09:37:40.577

239 Find and extract a number from a string 2011-01-19T10:24:53.443

238 Javascript regex multiline flag doesn't work 2009-07-01T09:52:34.850

236 How does Stack Overflow generate its SEO-friendly URLs? 2008-08-24T18:21:11.237

236 Remove new lines from string 2010-09-21T13:34:43.570

235 How do I access named capturing groups in a .NET Regex? 2009-05-25T12:11:00.573

234 Simple regular expression for a decimal with a precision of 2 2008-11-21T07:29:43.173

229 Interactive search/replace regex in Vim? 2009-02-03T02:34:25.853

229 regex.test V.S. string.match to know if a string matches a regular expression 2012-06-07T21:26:25.027

226 Case insensitive Python regular expression without re.compile 2009-02-01T13:56:14.340

223 jQuery validate: How to add a rule for regular expression validation? 2008-11-11T12:34:29.607

223 How can I find all matches to a regular expression in Python? 2011-01-15T03:53:07.447

222 Regex match one of two words 2011-07-28T18:00:58.313

222 Using String Format to show decimal up to 2 places or simple integer 2011-08-05T04:12:20.733

221 Why does a RegExp with global flag give wrong results? 2009-10-05T15:32:00.960

220 Regular Expression to find a string included between two characters while EXCLUDING the delimiters 2009-09-21T14:52:34.753

220 How to use regex with find command? 2011-07-27T13:05:03.923

218 Split a string by spaces -- preserving quoted substrings -- in Python 2008-09-17T04:25:15.710

218 Regular Expression to match outer brackets 2009-02-13T15:49:20.747

216 Java: splitting a comma-separated string but ignoring commas in quotes 2009-11-18T16:04:58.417

216 Match whitespace but not newlines 2010-08-12T15:00:15.193

212 How can I add a string to the end of each line in Vim? 2009-02-27T11:52:00.957

211 Can regular expressions be used to match nested patterns? 2008-09-25T14:17:40.873

210 How to use JavaScript regex over multiple lines? 2009-12-30T12:13:41.070

209 How to output only captured groups with sed? 2010-05-06T00:04:41.093

209 Java how to replace 2 or more spaces with single space in string and delete leading and trailing spaces 2010-05-28T20:43:11.853

203 Difference between matches() and find() in Java Regex 2010-12-15T12:50:32.017

200 Why are regular expressions so controversial? 2009-04-18T21:33:07.520

199 How do I extract text that lies between parentheses (round brackets)? 2008-12-18T16:32:27.343

199 A regular expression to exclude a word/string 2010-01-16T21:07:44.853