Click here to Skip to main content
14,695,085 members
Home » Discussions » Regular Expressions
   

Regular Expressions

 
GeneralRe: Using back references to find data type naming standards violations Pin
Member 1244829917-Apr-16 18:20
MemberMember 1244829917-Apr-16 18:20 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson17-Apr-16 20:13
professionalGeorge Jonsson17-Apr-16 20:13 
QuestionRe: Using back references to find data type naming standards violations Pin
Member 1244829919-Apr-16 7:54
MemberMember 1244829919-Apr-16 7:54 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson19-Apr-16 19:52
professionalGeorge Jonsson19-Apr-16 19:52 
GeneralRe: Using back references to find data type naming standards violations Pin
Member 1244829923-Apr-16 5:25
MemberMember 1244829923-Apr-16 5:25 
Questionnegation of an expression Pin
Vijjuuu.28-Feb-15 8:19
MemberVijjuuu.28-Feb-15 8:19 
AnswerRe: negation of an expression Pin
Richard Deeming2-Mar-15 3:52
mveRichard Deeming2-Mar-15 3:52 
AnswerRe: negation of an expression Pin
bulrush40026-May-16 1:57
Memberbulrush40026-May-16 1:57 
How about if we just drop all the words in (parens) and display what's left?

<br />
#!/usr/bin/perl<br />
use strict;<br />
use warnings;<br />
<br />
my(@a,@b,$i,$j,$k,$s,$t);<br />
my(@out,$ins,$outs);<br />
<br />
$ins="clicking the (Run Match) button (or F5) to see what (happens). ";<br />
print "\n";<br />
$outs=$ins;<br />
$outs=~s/\(.+?\)//g;<br />
$outs=undupespace($outs);<br />
print "$outs\n";<br />
<br />
exit; # Exit main pgm.<br />
###################################################################<br />
sub undupespace<br />
# Remove dupe spaces. Max 1 consecutive space.<br />
{my($l)=@_;<br />
<br />
$l=~s/ {2,}/ /g;<br />
return $l; # undupespace<br />
<br />
}<br />
<br />


Output:

clicking the button to see what .
QuestionHelp with regex HTML form validation Part 2 Pin
robwm110-Oct-14 11:18
Memberrobwm110-Oct-14 11:18 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 12:48
professionalMatt T Heffron10-Oct-14 12:48 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:11
Memberrobwm110-Oct-14 13:11 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 13:26
professionalMatt T Heffron10-Oct-14 13:26 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 13:34
Memberrobwm110-Oct-14 13:34 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 13:43
professionalMatt T Heffron10-Oct-14 13:43 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:06
Memberrobwm110-Oct-14 14:06 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 14:13
professionalMatt T Heffron10-Oct-14 14:13 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:14
Memberrobwm110-Oct-14 14:14 
SuggestionRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 14:18
professionalMatt T Heffron10-Oct-14 14:18 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:19
Memberrobwm110-Oct-14 14:19 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm111-Oct-14 12:00
Memberrobwm111-Oct-14 12:00 
GeneralRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron13-Oct-14 7:37
professionalMatt T Heffron13-Oct-14 7:37 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm113-Oct-14 7:59
Memberrobwm113-Oct-14 7:59 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 14:15
professionalMatt T Heffron10-Oct-14 14:15 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:18
Memberrobwm110-Oct-14 14:18 
QuestionHelp with regex HTML form validation Pin
robwm19-Oct-14 13:35
Memberrobwm19-Oct-14 13:35 

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.