Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mb_ereg_search_getpos(3) [php man page]

MB_EREG_SEARCH_GETPOS(3)						 1						  MB_EREG_SEARCH_GETPOS(3)

mb_ereg_search_getpos - Returns start point for next regular expression match

SYNOPSIS
int mb_ereg_search_getpos (void ) DESCRIPTION
Returns the start point for the next regular expression match. PARAMETERS
This function has no parameters. RETURN VALUES
mb_ereg_search_getpos(3) returns the point to start regular expression match for mb_ereg_search(3), mb_ereg_search_pos(3), mb_ereg_search_regs(3). The position is represented by bytes from the head of string. NOTES
Note The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this function. SEE ALSO
mb_regex_encoding(3), mb_ereg_search_setpos(3). PHP Documentation Group MB_EREG_SEARCH_GETPOS(3)

Check Out this Related Man Page

MB_EREG_SEARCH_INIT(3)							 1						    MB_EREG_SEARCH_INIT(3)

mb_ereg_search_init - Setup string and regular expression for a multibyte regular expression match

SYNOPSIS
bool mb_ereg_search_init (string $string, [string $pattern], [string $option = "msr"]) DESCRIPTION
mb_ereg_search_init(3) sets $string and $pattern for a multibyte regular expression. These values are used for mb_ereg_search(3), mb_ereg_search_pos(3), and mb_ereg_search_regs(3). PARAMETERS
o $string - The search string. o $pattern - The search pattern. o $option - The search option. RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Note The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this function. SEE ALSO
mb_regex_encoding(3), mb_ereg_search_regs(3). PHP Documentation Group MB_EREG_SEARCH_INIT(3)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Free regular expression interpreter for NT...

Can somebody point me in the direction of a reliable, open-source, free regular expression interpreter that runs on NT and is easily consumed from C/C++. I'll be happy to add this functionality to an event driven batch scheduler on our NT network. I didn't know wher I can fit this topic... I... (4 Replies)
Discussion started by: Vishnu
4 Replies

2. Programming

help in regular expression

Hi all, I'm working with flex (version 2.5.4a) on GNU/linux. I need to frame a regular expression which would match cases where word "file" does not occur. Negated character class wont work for me because they enforce "or" clause between different chars (so something like wont work). I would like... (5 Replies)
Discussion started by: Rakesh Ranjan
5 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. Shell Programming and Scripting

Regular Expression

Hi All, This regular expression is in awk. What does this regular expression evaluate to(character by character). ($0 ~ /^ .+*(|-).+*\*+.?*\*/) (2 Replies)
Discussion started by: mradsus
2 Replies

5. Shell Programming and Scripting

Need perl regular expression

Hi, I am looking for a Perl regular expression to match the below pattern of a java script file. var so = object.device.load('camera','value'); I want to grep out such lines present in the *.js files. The conditions are: a) the line may start with blank space(s) b) always the... (3 Replies)
Discussion started by: royalibrahim
3 Replies

6. Shell Programming and Scripting

How to insert/expand data/rows in a file, with rules??

Hi, I am rather new to Unix/Linus. I have this problem that I would like to solve using unix. Here is what I have start stop expression 1 5 15 2 6 10 I want a output like this position expression 1 15 2 25 3 ... (3 Replies)
Discussion started by: wanghlv
3 Replies

7. Shell Programming and Scripting

Perl regular expression - To match a Dynamic URL

Hello All, I have a requirement to match a dynamic url and extract each of the directory and page and store it -Only PERL style Regular EXP as it will be used in informatica - REG_EXTRACT function Example Input URLs: 1)... (2 Replies)
Discussion started by: jambesh
2 Replies

8. Shell Programming and Scripting

Perl expression help...

Pls. advise what is the meaning of below expression... if ($filename =~ /x(+), + bytes/) --with the 1st enclosed parenthesis... /x(+) this will match/filter all the filenames with any character, number, or underscore, and /x modifiers means I can put whitespace characters (like... (2 Replies)
Discussion started by: budz26
2 Replies

9. Shell Programming and Scripting

Matching single quote in a regular expression

I trying to match the begining of the following line in a perl script with a regular expression. $ENV{'ORACLE_HOME'} I tried this regluar expession: /\$ENV\{\'ORACLE_HOME\'\}/ Instead of match, I got a blank prompt > It seems to be a problem with the single quote. If I take it... (11 Replies)
Discussion started by: JC9672
11 Replies

10. Shell Programming and Scripting

regular expression for ab1-cd1.

Hi, I am trying to write a regular expression in perl to match pattern like "ab1-cd1"(<alphabet><alphabet><number>-<alphabet><alphabet><number>) as below. m/^++-++?$/ but seems not working. Can anyone help me? (3 Replies)
Discussion started by: success
3 Replies

11. Shell Programming and Scripting

regular expression

Could anyone of you please guide me on making correct regular expression to match the exact word or character I have some numbers like 12345780 extn 1234 1234567 x 43545 13245678 Extn 454857 if * ]]; then VAR3=`echo "$NUMBER" | nawk -F "*" '{print $1 $2}'` ... (4 Replies)
Discussion started by: nram_krishna@ya
4 Replies

12. Shell Programming and Scripting

Simple regular expression

Hello, I don't understand why my regular expression doesn't work. simply I want to check a phone number of 8 digits doesn't start with 0 regex1='^({1})({7})$' if then ------ fi for example this number should be valid 12345678 and this 01234567 or 1234567 not ... (6 Replies)
Discussion started by: eng_asa
6 Replies

13. Shell Programming and Scripting

Help with perl script

Please suggest a regular expression to match "check_geomtools.exe:" and check if the file contains ".lib" in the entire path. The string is as follows: E:\gtmproj\script\i486_nt\obj\check_geomtools.exe: o:\portsrc\spg\system_1\i486_nt\advapps\TK-2\objmt\winclockmtq.lib (2 Replies)
Discussion started by: Rashid Khan
2 Replies

14. UNIX for Dummies Questions & Answers

Multiple string input in a awk

Hi everybody, I just start my learning about Linux. So, if you can help me, it would be very good ! I have already find the possibility to find the position of a character regular expression in a line with the help of awk : test.txt is : AAAAAGHIJKLAjKMEFJKLjklABCDJkLEFGHIJKL My script is... (2 Replies)
Discussion started by: thewizarde6
2 Replies

15. Shell Programming and Scripting

Remove all but newest two files (Not a duplicate post)

TARGET_DIR='/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/' REGEX='{4}-{2}-{2}_{2}:{2}' # regular expression that match to: date '+%Y-%m-%d_%H:%M' LATEST_FILE="$(ls "$TARGET_DIR" | egrep "^${REGEX}$" | tail -1)" find "$TARGET_DIR" ! -name "$LATEST_FILE" -type f -regextype egrep -regex... (7 Replies)
Discussion started by: drew77
7 Replies