Regular Expression [duplicate] - regex

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 ($).

Related

Regex ignore match more than one dots [duplicate]

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

How to make regex expression to find all words after (africa) [duplicate]

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

Why does this Regular Expression match this string? [duplicate]

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?

Regular expression character limit [duplicate]

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?

What is mean by the part '=+' of the below regex [duplicate]

This question already has an answer here:
Reference - What does this regex mean?
(1 answer)
Closed 8 years ago.
[A-Za-z0-9'"-.:\\*?#/\\\\!_#$%&()\[\]{}=+\p{Space}]+
I am confused about the part '=+' of the regex. Does it signify one or more occurance of the character '+' only or + is treated as a character that may be contained by the string?
=+
is inside character class [] and so it has no special meaing and is treated as just literal characters.
Read more here