Click here to Skip to main content
15,860,844 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Need some help with regular expression Pin
Member 1524502416-Jun-21 8:53
Member 1524502416-Jun-21 8:53 
GeneralRe: Need some help with regular expression Pin
Richard MacCutchan16-Jun-21 10:10
mveRichard MacCutchan16-Jun-21 10:10 
AnswerRe: Need some help with regular expression Pin
User 1521787319-Jun-21 13:07
User 1521787319-Jun-21 13:07 
QuestionInterrupted list Pin
Member 1524502413-Jun-21 22:52
Member 1524502413-Jun-21 22:52 
AnswerRe: Interrupted list Pin
OriginalGriff13-Jun-21 21:58
mveOriginalGriff13-Jun-21 21:58 
GeneralRe: Interrupted list Pin
Member 1524502413-Jun-21 23:25
Member 1524502413-Jun-21 23:25 
GeneralRe: Interrupted list Pin
OriginalGriff14-Jun-21 1:53
mveOriginalGriff14-Jun-21 1:53 
AnswerRe: Interrupted list Pin
User 1521787319-Jun-21 15:36
User 1521787319-Jun-21 15:36 
Greetings Dumitru, Im not expert because there seems to be many different flavors, so Im just guessing on this.
But it does seem like each "semicolon-comma pair" could be represented by something like ...
(\d{1,2}(?:[-:]\d{1,2}[a-z]?)?; )(\d{1,2}:\d{1,2}(?:[a-z]|-\d\d)?, )

So depending on your flavor, since the sample has 4-1/2 pairs, you might have to type a VERY long string like...
^([\w]+\. )(\d{1,2}(?:[-:]\d{1,2}[a-z]?)?; )(\d{1,2}:\d{1,2}(?:[a-z]|-\d\d)?, )(\d{1,2}(?:[-:]\d{1,2}[a-z]?)?; )(\d{1,2}:\d{1,2}(?:[a-z]|-\d\d)?, )(\d{1,2}(?:[-:]\d{1,2}[a-z]?)?; )(\d{1,2}:\d{1,2}(?:[a-z]|-\d\d)?, )(\d{1,2}(?:[-:]\d{1,2}[a-z]?)?; )(\d{1,2}:\d{1,2}(?:[a-z]|-\d\d)?, \d{1,2}(?:[-:]\d{1,2}[a-z]?)?;)$
With a replacement like...
\1\2\1\3\4\1\5\6\1\7\8\1\9

modified 5-Oct-21 21:01pm.

QuestionMatching exact string with a vertical bar and square brackets Pin
RanCohen31-May-21 3:02
RanCohen31-May-21 3:02 
AnswerRe: Matching exact string with a vertical bar and square brackets Pin
Richard Deeming31-May-21 22:29
mveRichard Deeming31-May-21 22:29 
GeneralRe: Matching exact string with a vertical bar and square brackets Pin
RanCohen31-May-21 22:47
RanCohen31-May-21 22:47 
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 
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 

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.