Click here to Skip to main content
15,860,943 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
RanCohen31-May-21 23:20 
QuestionDetect only internal links containing the rel noopener Pin
Member 1519987919-May-21 6:15
Member 1519987919-May-21 6:15 
AnswerRe: Detect only internal links containing the rel noopener Pin
Tony Hill19-May-21 8:53
mveTony Hill19-May-21 8:53 
GeneralRe: Detect only internal links containing the rel noopener Pin
Member 1519987920-May-21 5:24
Member 1519987920-May-21 5:24 
GeneralRe: Detect only internal links containing the rel noopener Pin
Tony Hill20-May-21 9:32
mveTony Hill20-May-21 9:32 
GeneralRe: Detect only internal links containing the rel noopener Pin
Member 1519987920-May-21 23:55
Member 1519987920-May-21 23:55 
GeneralRe: Detect only internal links containing the rel noopener Pin
User 1521787319-Jun-21 18:53
User 1521787319-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!

modified 5-Oct-21 21:01pm.

QuestionWhat Could Be RegExp For? Pin
IbnUlAdam16-May-21 22:08
IbnUlAdam16-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
Member 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
Member 1519987919-May-21 5:52 
Questionworkaround for negative lookbehind regular expression in Javascript Pin
Ehsan sarshar26-Apr-21 6:27
Ehsan 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
subeditorPete O'Hanlon26-Apr-21 21:08 
QuestionRegex for a Customer number Pin
poornima sadasivan30-Mar-21 4:11
poornima sadasivan30-Mar-21 4:11 
AnswerRe: Regex for a Customer number Pin
SeanChupas30-Mar-21 5:27
SeanChupas30-Mar-21 5:27 
AnswerRe: Regex for a Customer number Pin
jschell9-Apr-21 15:21
jschell9-Apr-21 15:21 
QuestionIgnoring repeating values? Pin
Jason Hotchkiss 202124-Mar-21 8:17
Jason Hotchkiss 202124-Mar-21 8:17 
AnswerRe: Ignoring repeating values? Pin
w 3g24-Mar-21 10:45
w 3g24-Mar-21 10:45 
GeneralRe: Ignoring repeating values? Pin
Jason Hotchkiss 202125-Mar-21 1:06
Jason Hotchkiss 202125-Mar-21 1:06 
QuestionReplace certain characters in part of string? Pin
w 3g22-Mar-21 1:54
w 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
w 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.