regular expression

david b.k

I'm not sure about the meaning of this regular expression.

^[^a]*$

Does that mean, we don't want any string started with the letter a or contain a. And we don't want any string ended with also the letter a ?.

thanks.

jesse_b
  • ^ asserts position at start of a line
  • [^a] Match a single character not present in the list
  • * Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
  • $ asserts position at the end of a line

So it will essentially match any line and does not contain an a

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Issues with regular_expression

From Dev

Is there another regular-expression "flavor" in GNU sed?

From Dev

Character encoding in regular-expression substitution

From Dev

jquery RegularExpression

From Dev

C# Regular-expression check a string of hex value with semicolon-seperate

From Dev

When use java regular-expression pattern.matcher(), source does not match regex.But, my hope result is ,source matches regex

From Dev

RegularExpression matchesInString issue in Swift

From Dev

Regularexpression to get the .com

From Dev

RegularExpression Attribute Not Working as Expected

From Dev

PHP plus RegularExpression parse

From Dev

RegularExpression data annotation

From Dev

RegularExpression Attribute Not Working as Expected

From Dev

RegularExpression matchesInString issue in Swift

From Dev

Get number via RegularExpression

From Dev

DataAnnotations RegularExpression - disallow URLs

From Dev

DataAnnotations validation adding `@` to RegularExpression

From Dev

RegularExpression data annotation

From Dev

QRegularExpression count number of occurrences

From Dev

QRegularExpression matching thread safety

From Dev

QRegularExpression wildcard matching

From Dev

Getting error while putting RegularExpression

From Dev

Validating models using RegularExpression annotation

From Dev

MVC 5 RegularExpression Phone Number

From Dev

Replace regularexpression-string in metadataattribute

From Dev

Date RegularExpression does NOT work on FireFox

From Dev

Is this regular expression?

From Dev

Regular expression with?

From Dev

Regular expression for && and &

From Dev

Is there a regular expression for this?

From Dev

Regular expression for && and &

Related Related

HotTag

Archive