This question already has answers here:
Regex to match one or more characters
(2 answers)
Difference between * and + regex
(7 answers)
How to match "any character" in regular expression?
(12 answers)
Closed 5 years ago.
I have a regular expression for a 15-character limit:
/^([a-zA-Z0-9_]{1,15})$/
I would like to remove the character limit. How do I do this?
Related
This question already has answers here:
Regular Expression for getting everything after last slash [duplicate]
(7 answers)
Regular Expression to collect everything after the last /
(8 answers)
Closed 2 months ago.
Get The Last Characters end with (/) in include.
The input string is: xxx/xx/xxx/YERpq9CifKTIC1g
The result that I want: /YERpq9CifKTIC1g
Try:
/\/[^\/]+$/
The theory being to match a / followed by any character that isn’t a / ([^\/]) until the end of the line ($).
This question already has answers here:
Comma Separated Numbers Regex
(6 answers)
Regular Expression to match dot separated list with no dot on the end and allow asterisk at the end
(3 answers)
c++ regexp allowing digits separated by dot
(2 answers)
Closed 4 months ago.
/^[0-9][0-9-.]*[0-9]+$/u
I am trying to match with these like codes:
1.11122.5454.545
55
555.55
65656.75454
Not 111..444 and not 44545...444
How can I stop more than 1 dots between numbers
This question already has answers here:
Matching an optional substring in a regex
(4 answers)
How do I make part of a regex match optional?
(2 answers)
Closed 1 year ago.
I have a string which contains both form $date0$ and ''$date0$'' (single ').
I am using this regex to match (\$([^\$]+)\$) but it's only matching $date0$.
What regex should I use that matches both?
This question already has answers here:
how to fix - error: bad escape \u at position 0
(3 answers)
What special characters must be escaped in regular expressions?
(13 answers)
Closed 2 years ago.
I Have text and I want to use regex expression to find all words come after (Africa is):
my code
pattern = r'\africa\sis\s\w+'
re.findall(pattern,a)
the results should contain africa is (some words)
but I got this error
error: bad escape \i at position 0
This question already has answers here:
Understanding the negated character class
(3 answers)
Negative lookahead in regex to exclude percentage (%) in R
(3 answers)
Closed 2 years ago.
I have the string '05/'. If I write the pattern \d+[^\/]{1}, why does it still match the '05' part of the string? Shouldn't it be fully rejected since there is no match on the 3rd char requirement?