Sponsored Content
Top Forums Shell Programming and Scripting question about regular expression Post 89605 by brentdeback on Monday 14th of November 2005 03:04:57 PM
Old 11-14-2005
question about regular expression

why does [A-Z]* highlight everything in it... shouldn't it only highlight capital letters?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Regular Expression Question

Hi - I am trying to ignore the following items from a list. lp0 lp11 lp12 lp14 The following code works fine, but I was wondering if there was a tidier way to write the lp regular expression? egrep -v "lp" Thanks in advance. (3 Replies)
Discussion started by: Krispy
3 Replies

2. Shell Programming and Scripting

Regular expression question

hi i need to wipe out something from giving path i have some thing like that : pwd | sed 's/.*foo//' it is working fine when I have path like : /blah/balh1/foo/moo so it erasing me all that comes before the foo including the foo but I have problem when I have dir by the name of... (7 Replies)
Discussion started by: umen
7 Replies

3. UNIX for Dummies Questions & Answers

question (regular expression related)

anyone knows what does this regular expression match for? \(3,\).*\1.*\1 (1 Reply)
Discussion started by: metalwarrior
1 Replies

4. UNIX for Dummies Questions & Answers

Regular Expression question

Folks; I have 3 questions & any help with them would be really appreciated: If i have a list of directories, for example: /fs/pas/2007/4/6/2634210/admdat/examin /fs/pas/2007/4/6/2634210/admdat2/stat /fs/pas/2007/4/6/2634210/admdat3/data /fs/pas/2007/4/6/2634210/im_2/0b.dcm Now; my... (6 Replies)
Discussion started by: Katkota
6 Replies

5. UNIX for Dummies Questions & Answers

Question on Regular Expression

Folks; Could some one tell me what these 2 regular expressions mean: */(*)/* (\d\d\d\d/\d\d/\d\d/*?) (14 Replies)
Discussion started by: Katkota
14 Replies

6. Shell Programming and Scripting

Easy Perl regular expression question

Hey all! what matching expression might I use to match all characters included in \W, EXCEPT < and > ? for example: @tokens=split(/ ???? /,$string); I've dubiously tried \W but this clips off the first letter of each "token", for some reason ... (2 Replies)
Discussion started by: applefat
2 Replies

7. UNIX for Dummies Questions & Answers

a question about a regular expression

I like to loop a list of files which named file1, file2, file3, file4, etc if I like to loop them all over for f in file1, file2, file3, file4 do echo "processing" $f done how to use a regular expression to loop file$i instead? Thank you. (4 Replies)
Discussion started by: ksgreen
4 Replies

8. Programming

Perl: How to read from a file, do regular expression and then replace the found regular expression

Hi all, How am I read a file, find the match regular expression and overwrite to the same files. open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat"; open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat"; while (<DESTINATION_FILE>) { # print... (1 Reply)
Discussion started by: jessy83
1 Replies

9. UNIX for Dummies Questions & Answers

Regular Expression Question

Hello, I'm trying to rename a bunch of files that were named incorrectly. I know a little about regular expressions but I'm not very good at them. Here is the image of the file names: http://i47.tinypic.com/np2gxi.jpg I'm trying to change the 20111116 at the beginning to 20101116 for all... (2 Replies)
Discussion started by: nastyn8
2 Replies

10. UNIX for Dummies Questions & Answers

Regular expression question

Hi guys, I need a help with a query. Basically i want to know the difference between (0+01)* and ((0+01)*)* . It seems whatever string can be generated by the first RE can also be generated by second and they should essentially be same. Am i missing something? (1 Reply)
Discussion started by: srkmish
1 Replies
Gtk2::SourceView2::Buffer(3pm)				User Contributed Perl Documentation			    Gtk2::SourceView2::Buffer(3pm)

NAME
Gtk2::SourceView2::Buffer HIERARCHY
Glib::Object +----Gtk2::TextBuffer +----Gtk2::SourceView2::Buffer METHODS
buffer = Gtk2::SourceView2::Buffer->new ($table) o $table (Gtk2::TextTagTable or undef) buffer = Gtk2::SourceView2::Buffer->new_with_language ($language) o $language (Gtk2::SourceView2::Language) boolean = $buffer->backward_iter_to_source_mark ($iter, $category) o $iter (Gtk2::TextIter) o $category (string or undef) $buffer->begin_not_undoable_action boolean = $buffer->can_redo boolean = $buffer->can_undo mark = $buffer->create_source_mark ($name, $category, $where) o $name (string or undef) o $category (string) o $where (Gtk2::TextIter) $buffer->end_not_undoable_action $buffer->ensure_highlight ($start, $end) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) boolean = $buffer->forward_iter_to_source_mark ($iter, $category) o $iter (Gtk2::TextIter) o $category (string or undef) boolean = $buffer->get_highlight_matching_brackets $buffer->set_highlight_matching_brackets ($highlight) o $highlight (boolean) boolean = $buffer->get_highlight_syntax $buffer->set_highlight_syntax ($highlight) o $highlight (boolean) language or undef = $buffer->get_language $buffer->set_language ($language) o $language (Gtk2::SourceView2::Language or undef) integer = $buffer->get_max_undo_levels $buffer->set_max_undo_levels ($max_undo_levels) o $max_undo_levels (integer) $buffer->redo $buffer->remove_source_marks ($start, $end, $category) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) o $category (string or undef) $buffer->get_source_marks_at_iter ($iter, $category) o $iter (Gtk2::TextIter) o $category (string or undef) $buffer->get_source_marks_at_line ($line, $category) o $line (integer) o $category (string or undef) stylescheme or undef = $buffer->get_style_scheme $buffer->set_style_scheme ($scheme) o $scheme (Gtk2::SourceView2::StyleScheme) $buffer->undo PROPERTIES
'can-redo' (boolean : default false : readable) Whether Redo operation is possible 'can-undo' (boolean : default false : readable) Whether Undo operation is possible 'highlight-matching-brackets' (boolean : default true : readable / writable) Whether to highlight matching brackets 'highlight-syntax' (boolean : default true : readable / writable) Whether to highlight syntax in the buffer 'language' (Gtk2::SourceView2::Language : default undef : readable / writable) Language object to get highlighting patterns from 'max-undo-levels' (integer : default 1000 : readable / writable) Number of undo levels for the buffer 'style-scheme' (Gtk2::SourceView2::StyleScheme : default undef : readable / writable) Style scheme 'undo-manager' (Glib::Object::_Unregistered::GtkSourceUndoManager : default undef : readable / writable / construct) The buffer undo manager SIGNALS
highlight-updated (Gtk2::SourceView2::Buffer, Gtk2::TextIter, Gtk2::TextIter) source-mark-updated (Gtk2::SourceView2::Buffer, Gtk2::TextMark) undo (Gtk2::SourceView2::Buffer) redo (Gtk2::SourceView2::Buffer) SEE ALSO
Gtk2::SourceView2, Glib::Object, Gtk2::TextBuffer COPYRIGHT
Copyright (C) 2009 by Emmanuel Rodriguez perl v5.14.2 2011-11-16 Gtk2::SourceView2::Buffer(3pm)
All times are GMT -4. The time now is 04:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy