Click here to Skip to main content
14,975,705 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Matching exact string with a vertical bar and square brackets Pin
Richard Deeming31-May-21 23:12
mveRichard Deeming31-May-21 23:12 
GeneralRe: Matching exact string with a vertical bar and square brackets Pin
RanCohen31-May-21 23:20
MemberRanCohen31-May-21 23:20 
QuestionDetect only internal links containing the rel noopener Pin
Member 1519987919-May-21 6:15
MemberMember 1519987919-May-21 6:15 
AnswerRe: Detect only internal links containing the rel noopener Pin
Tony Hill19-May-21 8:53
MemberTony Hill19-May-21 8:53 
GeneralRe: Detect only internal links containing the rel noopener Pin
Member 1519987920-May-21 5:24
MemberMember 1519987920-May-21 5:24 
GeneralRe: Detect only internal links containing the rel noopener Pin
Tony Hill20-May-21 9:32
MemberTony Hill20-May-21 9:32 
GeneralRe: Detect only internal links containing the rel noopener Pin
Member 1519987920-May-21 23:55
MemberMember 1519987920-May-21 23:55 
GeneralRe: Detect only internal links containing the rel noopener Pin
Luuk200519-Jun-21 18:53
MemberLuuk200519-Jun-21 18:53 
With the sample text-strings you've provided, its impossible for any expression to match by 'internal' domain.
If your application has a %variable% to represent the domain being searched, you would have to provide this.
Regex simply matches text, it cant determine if that text is "the domain being searched" by your application.

I've seen apps that support variables like %domain% in their match-expressions, but they're specific to that application.
So if your app supports this, you'd have to look up the variable-name in the documentation, to provide a working example.

Short of that, you would need to either hard-code the domains per site being searched, like in the example provided.
Or include a larger snippet of the html, but only if the html offered another way to verify 'internal' (highly unlikely).

Sorry for the news, but regex wont solve this without 'internal' being defined, whether by a previous match, or by some variable.
Some apps even let you customize variables, so maybe thats another option? Sorry, but I know nothing of this "Screaming Frog".
Either way, I do wish you luck!
QuestionWhat Could Be RegExp For? Pin
IbnUlAdam16-May-21 22:08
MemberIbnUlAdam16-May-21 22:08 
AnswerRe: What Could Be RegExp For? Pin
Peter_in_278016-May-21 22:57
professionalPeter_in_278016-May-21 22:57 
QuestionRegex to detect href not correctly closed Pin
Member 1519987914-May-21 8:36
MemberMember 1519987914-May-21 8:36 
AnswerRe: Regex to detect href not correctly closed Pin
Richard Deeming18-May-21 3:46
mveRichard Deeming18-May-21 3:46 
GeneralRe: Regex to detect href not correctly closed Pin
Member 1519987919-May-21 5:52
MemberMember 1519987919-May-21 5:52 
Questionworkaround for negative lookbehind regular expression in Javascript Pin
Ehsan sarshar26-Apr-21 6:27
MemberEhsan sarshar26-Apr-21 6:27 
AnswerRe: workaround for negative lookbehind regular expression in Javascript Pin
Richard Deeming26-Apr-21 6:39
mveRichard Deeming26-Apr-21 6:39 
AnswerRe: workaround for negative lookbehind regular expression in Javascript Pin
Pete O'Hanlon26-Apr-21 21:08
mvePete O'Hanlon26-Apr-21 21:08 
QuestionRegex for a Customer number Pin
poornima sadasivan30-Mar-21 4:11
Memberpoornima sadasivan30-Mar-21 4:11 
AnswerRe: Regex for a Customer number Pin
SeanChupas30-Mar-21 5:27
MemberSeanChupas30-Mar-21 5:27 
AnswerRe: Regex for a Customer number Pin
jschell9-Apr-21 15:21
Memberjschell9-Apr-21 15:21 
QuestionIgnoring repeating values? Pin
Jason Hotchkiss 202124-Mar-21 8:17
MemberJason Hotchkiss 202124-Mar-21 8:17 
AnswerRe: Ignoring repeating values? Pin
w 3g24-Mar-21 10:45
Memberw 3g24-Mar-21 10:45 
GeneralRe: Ignoring repeating values? Pin
Jason Hotchkiss 202125-Mar-21 1:06
MemberJason Hotchkiss 202125-Mar-21 1:06 
QuestionReplace certain characters in part of string? Pin
w 3g22-Mar-21 1:54
Memberw 3g22-Mar-21 1:54 
AnswerRe: Replace certain characters in part of string? Pin
Richard Deeming22-Mar-21 2:08
mveRichard Deeming22-Mar-21 2:08 
GeneralRe: Replace certain characters in part of string? Pin
w 3g22-Mar-21 23:38
Memberw 3g22-Mar-21 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.